mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
Removed unnecessary "if" in guild.view twig
* problem that doesn't show the option to kick people from the guild
This commit is contained in:
parent
bda7982134
commit
624a99b179
@ -139,30 +139,28 @@
|
|||||||
<form action="?subtopic=guilds&action=change_nick&name={{ playerName }}" method="post">
|
<form action="?subtopic=guilds&action=change_nick&name={{ playerName }}" method="post">
|
||||||
{{ getPlayerLink(playerName, true)|raw }}
|
{{ getPlayerLink(playerName, true)|raw }}
|
||||||
|
|
||||||
{% if useGuildNick %}
|
{% set showGuildNick = false %}
|
||||||
{% set showGuildNick = false %}
|
{% if player.getGuildNick() is not empty %}
|
||||||
{% if player.getGuildNick() is not empty %}
|
{% set showGuildNick = true %}
|
||||||
{% set showGuildNick = true %}
|
{% set guildNickRaw = player.getGuildNick()|raw %}
|
||||||
{% set guildNickRaw = player.getGuildNick()|raw %}
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if logged %}
|
{% if logged %}
|
||||||
{% if player.getId() in players_from_account_ids %}
|
{% if player.getId() in players_from_account_ids %}
|
||||||
(<input type="text" name="nick" value="{{ guildNickRaw }}"><input type="submit" value="Change">)
|
(<input type="text" name="nick" value="{{ guildNickRaw }}"><input type="submit" value="Change">)
|
||||||
{% else %}
|
|
||||||
{% if showGuildNick %} ({{ guildNickRaw }}){% endif %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if level_in_guild > rank.rank_level or isLeader %}
|
|
||||||
{% if guildOwnerName != playerName %}
|
|
||||||
<span style="font-size: 10px; float: right">
|
|
||||||
{<a href="?subtopic=guilds&action=kick_player&guild={{ guild_name|url_encode }}&name={{ playerName|url_encode }}">KICK</a>}
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if showGuildNick %} ({{ guildNickRaw }}){% endif %}
|
{% if showGuildNick %} ({{ guildNickRaw }}){% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if level_in_guild > rank.rank_level or isLeader %}
|
||||||
|
{% if guildOwnerName != playerName %}
|
||||||
|
<span style="font-size: 10px; float: right">
|
||||||
|
{<a href="?subtopic=guilds&action=kick_player&guild={{ guild_name|url_encode }}&name={{ playerName|url_encode }}">KICK</a>}
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
{% if showGuildNick %} ({{ guildNickRaw }}){% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user