Skip to content

Commit

Permalink
Revert "address tag display on query list page" (#3050)
Browse files Browse the repository at this point in the history
* Revert "remove pytest_watch (#3048)"

This reverts commit 096eba3.

* Revert "address tag display on query list page (#2803)"

This reverts commit 99115a1.
  • Loading branch information
arikfr authored Nov 7, 2018
1 parent 096eba3 commit 667fe43
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 25 deletions.
6 changes: 1 addition & 5 deletions client/app/assets/less/inc/list-group.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
}
}

.max-character {
.text-overflow();
}

.list-group-item {
.list-group-item {
&.active {
button {
color: white;
Expand Down
10 changes: 0 additions & 10 deletions client/app/assets/less/redash/redash-newstyle.less
Original file line number Diff line number Diff line change
Expand Up @@ -449,20 +449,10 @@ page-header, .page-header--new {
background: fade(@redash-gray, 85%);
}

.label-default-unpublished {
background: fade(@redash-gray, 85%);
display: inline-block;
overflow: hidden;
}

.label-tag {
background: fade(@redash-gray, 10%);
color: fade(@redash-gray, 75%);
margin-right: 3px;
display: inline-block;
margin-top: 2px;
max-width: 24ch;
.text-overflow();
}

.tab-nav > li > a {
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/tags-control/control-template.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<span class="label label-tag" ng-repeat="tag in $ctrl.item.tags" title="{{tag}}">{{ tag }}</span
<span class="label label-tag" ng-repeat="tag in $ctrl.item.tags">{{ tag }}</span
><a ng-if="$ctrl.canEdit && $ctrl.item.tags.length == 0" class="label label-tag"
ng-click="$ctrl.editTags()"><i class="zmdi zmdi-plus"></i> Add tag</a
><a ng-if="$ctrl.canEdit && $ctrl.item.tags.length > 0" class="label label-tag"
Expand Down
2 changes: 1 addition & 1 deletion client/app/components/tags-list/tags-list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="list-group m-t-10 tags-list tiled" ng-if="$ctrl.allTags.length > 0">
<a ng-repeat="tag in $ctrl.allTags" ng-class="{active: $ctrl.selectedTags.has(tag.name)}" class="list-group-item max-character" ng-click="$ctrl.toggleTag($event, tag.name)" title="{{tag.name}}">
<a ng-repeat="tag in $ctrl.allTags" ng-class="{active: $ctrl.selectedTags.has(tag.name)}" class="list-group-item" ng-click="$ctrl.toggleTag($event, tag.name)">
{{ tag.name }} <span class="badge badge-light">{{ tag.count }}</span>
</a>
</div>
15 changes: 7 additions & 8 deletions client/app/pages/queries-list/queries-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,16 @@
<td class="table-main-title">
<a href="queries/{{query.id}}">{{query.name}}</a>
<br>
<span>
<span class="label label-default-unpublished" ng-if="query.is_draft">Unpublished</span> <tags-control item="query"></tags-control>
</span>
<span class="label label-default" ng-if="query.is_draft">Unpublished</span>
<tags-control item="query"></tags-control>
</td>
<td class="p-r-0 text-nowrap">
<td class="p-r-0">
<img ng-src="{{query.user.profile_image_url}}" class="profile__image_thumb" title="Created by {{query.user.name}}" />
</td>
<td class="text-nowrap">{{query.created_at | dateTime}}</td>
<td class="text-nowrap">{{query.runtime | durationHumanize}}</td>
<td class="text-nowrap">{{query.retrieved_at | dateTime}}</td>
<td class="text-nowrap">{{query.schedule | scheduleHumanize}}</td>
<td>{{query.created_at | dateTime}}</td>
<td>{{query.runtime | durationHumanize}}</td>
<td>{{query.retrieved_at | dateTime}}</td>
<td>{{query.schedule | scheduleHumanize}}</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 667fe43

Please sign in to comment.