mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +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}
|
{include description, x => $dat}
|
||||||
{/ifset}
|
{/ifset}
|
||||||
</td>
|
</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}
|
{include actions, x => $dat}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -73,28 +73,22 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block actions}
|
{block actions}
|
||||||
{var $clubPinned = $thisUser->isClubPinned($x)}
|
|
||||||
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
{if $x->canBeModifiedBy($thisUser ?? NULL)}
|
||||||
<div class="navigation" style="width: 140px;">
|
{var $clubPinned = $thisUser->isClubPinned($x)}
|
||||||
<a class="link" href="{$x->getURL()}">
|
<a href="{$x->getURL()}" class="profile_link">{_check_community}</a>
|
||||||
{_check_community}
|
<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()}">
|
||||||
</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}
|
{if $clubPinned}
|
||||||
{_remove_from_left_menu}
|
{_remove_from_left_menu}
|
||||||
{else}
|
{else}
|
||||||
{_add_to_left_menu}
|
{_add_to_left_menu}
|
||||||
{/if}
|
{/if}
|
||||||
</a>
|
</a>
|
||||||
{/if}
|
<form class="profile_link_form" action="/setSub/club" method="post">
|
||||||
<form action="/setSub/club" method="post">
|
|
||||||
<input type="hidden" name="act" value="rem" />
|
<input type="hidden" name="act" value="rem" />
|
||||||
<input type="hidden" name="id" value="{$x->getId()}" />
|
<input type="hidden" name="id" value="{$x->getId()}" />
|
||||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||||
<input style="text-transform: lowercase; width: 100%;" class="link" type="submit" value="{_"leave_community"}" />
|
<input type="submit" class="profile_link" value="{_"leave_community"}" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
{/if}
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
|
|
@ -334,6 +334,7 @@ p {
|
||||||
.action_links>.profile_link,
|
.action_links>.profile_link,
|
||||||
.action_links>.profile_link_form>.profile_link {
|
.action_links>.profile_link_form>.profile_link {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
|
text-transform: lowercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile_link.disable>a,
|
.profile_link.disable>a,
|
||||||
|
|
Loading…
Reference in a new issue