Global: Make all actions in lists lowercase

Also fix display of actions in My Groups
Closes #590
This commit is contained in:
Maxim Leshchenko 2022-08-09 00:36:02 +01:00
parent da19ff03b3
commit aed1fdbd3f
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE
3 changed files with 16 additions and 21 deletions

View file

@ -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>

View file

@ -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()}">
{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}
</a>
{/if}
<form action="/setSub/club" method="post">
<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 style="text-transform: lowercase; width: 100%;" class="link" type="submit" value="{_"leave_community"}" />
<input type="submit" class="profile_link" value="{_"leave_community"}" />
</form>
</div>
{/if}
{/block}

View file

@ -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,