Skip to content

Commit

Permalink
https://github.com/NodeBB/NodeBB/pull/7109
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Dec 14, 2018
1 parent f4487cd commit 7af8840
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
8 changes: 8 additions & 0 deletions templates/account/settings.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@
<input type="checkbox" data-property="followTopicsOnReply" <!-- IF settings.followTopicsOnReply -->checked<!-- ENDIF settings.followTopicsOnReply -->/><i class="input-helper"></i> <strong>[[user:follow_topics_you_reply_to]]</strong>
</label>
</div>
<div class="form-group">
<label>[[user:default-category-watch-state]]</label>
<select class="form-control" data-property="categoryWatchState">
<option value="watching" <!-- IF categoryWatchState.watching -->selected<!-- ENDIF categoryWatchState.watching -->>[[category:watching]]</option>
<option value="notwatching" <!-- IF categoryWatchState.notwatching -->selected<!-- ENDIF categoryWatchState.notwatching -->>[[category:not-watching]]</option>
<option value="ignoring" <!-- IF categoryWatchState.ignoring -->selected<!-- ENDIF categoryWatchState.ignoring -->>[[category:ignoring]]</option>
</select>
</div>
</div>

<h4>[[global:pagination]]</h4>
Expand Down
8 changes: 4 additions & 4 deletions templates/category.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<!-- ENDIF !loggedIn -->
<!-- ENDIF privileges.topics:create -->

<a href="{url}" class="inline-block">
<div class="alert alert-warning hide" id="new-topics-alert"></div>
</a>

<span class="pull-right" component="category/controls">
<!-- IMPORT partials/category/watch.tpl -->
<!-- IMPORT partials/category/sort.tpl -->
Expand All @@ -31,10 +35,6 @@
</div>
<!-- ENDIF !topics.length -->

<a href="{url}">
<div class="alert alert-warning hide" id="new-topics-alert"></div>
</a>

<!-- IMPORT partials/topics_list.tpl -->

<!-- IF config.usePagination -->
Expand Down
10 changes: 6 additions & 4 deletions templates/partials/category/watch.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
<div class="btn-group topic-watch-dropdown bottom-sheet" component="topic/watch">

<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button">
<span component="category/watching/menu" <!-- IF isIgnored -->class="hidden"<!-- ENDIF isIgnored -->><i class="fa fa-fw fa-eye"></i><span class="visible-sm-inline visible-md-inline visible-lg-inline">[[category:watching]]</span></span>
<span component="category/ignoring/menu" <!-- IF !isIgnored -->class="hidden"<!-- ENDIF !isIgnored -->><i class="fa fa-fw fa-eye-slash"></i><span class="visible-sm-inline visible-md-inline visible-lg-inline">[[category:ignoring]]</span></span>
<span component="category/watching/menu" <!-- IF !../isWatched -->class="hidden"<!-- ENDIF !../isWatched -->><i class="fa fa-fw fa-inbox"></i><span class="visible-sm-inline visible-md-inline visible-lg-inline">[[category:watching]]</span></span>
<span component="category/notwatching/menu" <!-- IF !../isNotWatched -->class="hidden"<!-- ENDIF !../isNotWatched -->><i class="fa fa-fw fa-clock-o"></i><span class="visible-sm-inline visible-md-inline visible-lg-inline">[[category:not-watching]]</span></span>
<span component="category/ignoring/menu" <!-- IF !../isIgnored -->class="hidden"<!-- ENDIF !../isIgnored -->><i class="fa fa-fw fa-eye-slash"></i><span class="visible-sm-inline visible-md-inline visible-lg-inline">[[category:ignoring]]</span></span>
<span class="caret"></span>
</button>

<ul class="dropdown-menu dropdown-menu-right">
<li><a href="#" component="category/watching"><i component="category/watching/check" class="fa fa-fw <!-- IF !isIgnored -->fa-check<!-- ENDIF !isIgnored -->"></i><i class="fa fa-fw fa-eye"></i> [[category:watching]]<p class="help-text"><small>[[category:watching.description]]</small></p></a></li>
<li><a href="#" component="category/ignoring"><i component="category/ignoring/check" class="fa fa-fw <!-- IF isIgnored -->fa-check<!-- ENDIF isIgnored -->"></i><i class="fa fa-fw fa-eye-slash"></i> [[category:ignoring]]<p class="help-text"><small>[[category:ignoring.description]]</small></p></a></li>
<li><a href="#" component="category/watching" data-state="watching"><i component="category/watching/check" class="fa fa-fw <!-- IF ../isWatched -->fa-check<!-- ENDIF ../isWatched -->"></i><i class="fa fa-fw fa-inbox"></i> [[category:watching]]<p class="help-text"><small>[[category:watching.description]]</small></p></a></li>
<li><a href="#" component="category/notwatching" data-state="notwatching"><i component="category/notwatching/check" class="fa fa-fw <!-- IF ../isNotWatched -->fa-check<!-- ENDIF ../isNotWatched -->"></i><i class="fa fa-fw fa-clock-o"></i> [[category:not-watching]]<p class="help-text"><small>[[category:not-watching.description]]</small></p></a></li>
<li><a href="#" component="category/ignoring" data-state="ignoring"><i component="category/ignoring/check" class="fa fa-fw <!-- IF ../isIgnored -->fa-check<!-- ENDIF ../isIgnored -->"></i><i class="fa fa-fw fa-eye-slash"></i> [[category:ignoring]]<p class="help-text"><small>[[category:ignoring.description]]</small></p></a></li>
</ul>
</div>
<!-- ENDIF config.loggedIn -->

0 comments on commit 7af8840

Please sign in to comment.