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} {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>

View file

@ -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}
{if ($clubPinned || $thisUser->getPinnedClubCount() <= 10)} {_remove_from_left_menu}
<a class="link" href="/groups_pin?club={$x->getId()}&hash={rawurlencode($csrfToken)}" id="_pinGroup" data-group-name="{$x->getName()}" data-group-url="{$x->getUrl()}"> {else}
{if $clubPinned} {_add_to_left_menu}
{_remove_from_left_menu}
{else}
{_add_to_left_menu}
{/if}
</a>
{/if} {/if}
<form action="/setSub/club" method="post"> </a>
<input type="hidden" name="act" value="rem" /> <form class="profile_link_form" action="/setSub/club" method="post">
<input type="hidden" name="id" value="{$x->getId()}" /> <input type="hidden" name="act" value="rem" />
<input type="hidden" name="hash" value="{$csrfToken}" /> <input type="hidden" name="id" value="{$x->getId()}" />
<input style="text-transform: lowercase; width: 100%;" class="link" type="submit" value="{_"leave_community"}" /> <input type="hidden" name="hash" value="{$csrfToken}" />
</form> <input type="submit" class="profile_link" value="{_"leave_community"}" />
</div> </form>
{/if} {/if}
{/block} {/block}

View file

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