Merge "Make tags section more consistent"

This commit is contained in:
Zuul 2019-03-05 00:14:51 +00:00 committed by Gerrit Code Review
commit c885926467
1 changed files with 20 additions and 26 deletions

View File

@ -349,9 +349,9 @@
<!-- Template for the tags list and controls -->
<script type="text/ng-template" id="/inline/tags.html">
<strong>Tags</strong>
<h3>Tags</h3>
<ul class="list-inline">
<ul class="list-inline" ng-if="story.tags.length > 0">
<li ng-repeat="tag in story.tags">
<h4>
<span class="label label-warning">
@ -362,7 +362,9 @@
</h4>
</li>
</ul>
<br>
<p class="text-muted" ng-if="story.tags.length == 0 && !isLoggedIn">
<em>This story has no tags yet.</em>
</p>
<span class="input-group" ng-show="showAddTag">
<input type="text" class="form-control" ng-model="newTag.name"
typeahead="tag as tag.name for tag in searchTags($viewValue)"
@ -375,18 +377,10 @@
ng-click="toggleAddTag()">Cancel</button>
</span>
</span>
<h4>
<span class="label label-default" ng-click="toggleAddTag()"
<button class="btn btn-default" ng-click="toggleAddTag()"
ng-show="!showAddTag && isLoggedIn">
Add
<i class="fa fa-plus"></i>
</span>
<span class="label label-default" ng-click="showLoginRequiredModal()"
ng-show="!isLoggedIn">
Add
<i class="fa fa-plus"></i>
</span>
</h4>
<i class="fa fa-plus-circle"></i>&nbsp;Add Tag
</button>
</script>
<!-- Template for the task list -->