mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Global: Make all actions in lists lowercase
Also fix display of actions in My Groups Closes #590
This commit is contained in:
parent
da19ff03b3
commit
aed1fdbd3f
3 changed files with 16 additions and 21 deletions
|
@ -41,7 +41,7 @@
|
|||
{include description, x => $dat}
|
||||
{/ifset}
|
||||
</td>
|
||||
<td n:ifset="actions" valign="top" class="action_links" style="width: 150px; text-transform: lowercase;">
|
||||
<td n:ifset="actions" valign="top" class="action_links" style="width: 150px;">
|
||||
{include actions, x => $dat}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -73,28 +73,22 @@
|
|||
{/block}
|
||||
|
||||
{block actions}
|
||||
{var $clubPinned = $thisUser->isClubPinned($x)}
|
||||
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
||||
<div class="navigation" style="width: 140px;">
|
||||
<a class="link" href="{$x->getURL()}">
|
||||
{_check_community}
|
||||
</a>
|
||||
{if ($clubPinned || $thisUser->getPinnedClubCount() <= 10)}
|
||||
<a class="link" href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" id="_pinGroup" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}">
|
||||
{if $clubPinned}
|
||||
{_remove_from_left_menu}
|
||||
{else}
|
||||
{_add_to_left_menu}
|
||||
{/if}
|
||||
</a>
|
||||
{var $clubPinned = $thisUser->isClubPinned($x)}
|
||||
<a href="{$x->getURL()}" class="profile_link">{_check_community}</a>
|
||||
<a href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" class="profile_link" n:if="$clubPinned || $thisUser->getPinnedClubCount() <= 10" id="_pinGroup" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}">
|
||||
{if $clubPinned}
|
||||
{_remove_from_left_menu}
|
||||
{else}
|
||||
{_add_to_left_menu}
|
||||
{/if}
|
||||
<form action="/setSub/club" method="post">
|
||||
<input type="hidden" name="act" value="rem" />
|
||||
<input type="hidden" name="id" value="{$x->getId()}" />
|
||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||
<input style="text-transform: lowercase; width: 100%;" class="link" type="submit" value="{_"leave_community"}" />
|
||||
</form>
|
||||
</div>
|
||||
</a>
|
||||
<form class="profile_link_form" action="/setSub/club" method="post">
|
||||
<input type="hidden" name="act" value="rem" />
|
||||
<input type="hidden" name="id" value="{$x->getId()}" />
|
||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||
<input type="submit" class="profile_link" value="{_"leave_community"}" />
|
||||
</form>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
|
|
|
@ -334,6 +334,7 @@ p {
|
|||
.action_links>.profile_link,
|
||||
.action_links>.profile_link_form>.profile_link {
|
||||
width: 150px;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
.profile_link.disable>a,
|
||||
|
|
Loading…
Reference in a new issue