Skip to content

Commit e5f599c

Browse files
authored
Merge pull request phpbb#6797 from LukeWCS/ticket/17492
[ticket/17492] Unintuitive checkbox status inverted for forum/topic subscriptions
2 parents 4060877 + 705b5ca commit e5f599c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

phpBB/styles/prosilver/template/navbar_footer.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
{% endapply %}
2323
<!-- EVENT overall_footer_breadcrumb_append -->
2424
</li>
25-
<!-- IF U_WATCH_FORUM_LINK and not S_IS_BOT -->
25+
{% if U_WATCH_FORUM_LINK && !S_IS_BOT %}
2626
<li data-last-responsive="true">
27-
<a href="{U_WATCH_FORUM_LINK}" title="{S_WATCH_FORUM_TITLE}" data-ajax="toggle_link" data-toggle-class="icon <!-- IF S_WATCHING_FORUM -->fa-check-square-o<!-- ELSE -->fa-square-o<!-- ENDIF --> fa-fw" data-toggle-text="{S_WATCH_FORUM_TOGGLE}" data-toggle-url="{U_WATCH_FORUM_TOGGLE}">
28-
<i class="icon <!-- IF S_WATCHING_FORUM -->fa-square-o<!-- ELSE -->fa-check-square-o<!-- ENDIF --> fa-fw" aria-hidden="true"></i><span>{S_WATCH_FORUM_TITLE}</span>
27+
<a href="{{ U_WATCH_FORUM_LINK }}" title="{{ S_WATCH_FORUM_TITLE }}" data-ajax="toggle_link" data-toggle-class="icon {{ !S_WATCHING_FORUM ? 'fa-check-square-o' : 'fa-square-o' }} fa-fw" data-toggle-text="{{ S_WATCH_FORUM_TOGGLE }}" data-toggle-url="{{ U_WATCH_FORUM_TOGGLE }}">
28+
<i class="icon {{ S_WATCHING_FORUM ? 'fa-check-square-o' : 'fa-square-o' }} fa-fw" aria-hidden="true"></i><span>{{ S_WATCH_FORUM_TITLE }}</span>
2929
</a>
3030
</li>
31-
<!-- ENDIF -->
31+
{% endif %}
3232

3333
<!-- EVENT overall_footer_timezone_before -->
3434
<li class="rightside">{S_TIMEZONE}</li>

phpBB/styles/prosilver/template/viewtopic_topic_tools.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<div class="pointer"><div class="pointer-inner"></div></div>
99
<ul class="dropdown-contents">
1010
<!-- EVENT viewtopic_topic_tools_before -->
11-
<!-- IF U_WATCH_TOPIC -->
11+
{% if U_WATCH_TOPIC %}
1212
<li>
13-
<a href="{U_WATCH_TOPIC}" class="watch-topic-link" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="icon <!-- IF S_WATCHING_TOPIC -->fa-check-square-o<!-- ELSE -->fa-square-o<!-- ENDIF --> fa-fw" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}" data-update-all=".watch-topic-link">
14-
<i class="icon <!-- IF S_WATCHING_TOPIC -->fa-square-o<!-- ELSE -->fa-check-square-o<!-- ENDIF --> fa-fw" aria-hidden="true"></i><span>{S_WATCH_TOPIC_TITLE}</span>
13+
<a href="{{ U_WATCH_TOPIC }}" class="watch-topic-link" title="{{ S_WATCH_TOPIC_TITLE }}" data-ajax="toggle_link" data-toggle-class="icon {{ !S_WATCHING_TOPIC ? 'fa-check-square-o' : 'fa-square-o' }} fa-fw" data-toggle-text="{{ S_WATCH_TOPIC_TOGGLE }}" data-toggle-url="{{ U_WATCH_TOPIC_TOGGLE }}" data-update-all=".watch-topic-link">
14+
<i class="icon {{ S_WATCHING_TOPIC ? 'fa-check-square-o' : 'fa-square-o' }} fa-fw" aria-hidden="true"></i><span>{{ S_WATCH_TOPIC_TITLE }}</span>
1515
</a>
1616
</li>
17-
<!-- ENDIF -->
17+
{% endif %}
1818
<!-- IF U_BOOKMARK_TOPIC -->
1919
<li>
2020
<a href="{U_BOOKMARK_TOPIC}" class="bookmark-link" title="{L_BOOKMARK_TOPIC}" data-ajax="alt_text" data-alt-text="{S_BOOKMARK_TOGGLE}" data-update-all=".bookmark-link">

0 commit comments

Comments
 (0)