Fixing tags

This commit is contained in:
Mathew Kurian 2014-12-21 21:38:19 -06:00
parent 7f3c26cd65
commit 3291617f24
2 changed files with 9 additions and 6 deletions

View file

@ -1,6 +1,7 @@
<p class="log"> <p class="log">
<span class="log__item log__time"> <span class="log__item log__time" ng-if="showDate != 0 && (showDate == 1 || log.show.date) ||
showTime != 0 && (showTime == 1 || log.show.time)">
<span ng-if="showDate != 0 && (showDate == 1 || log.show.date)" class="log__time__higher"> <span ng-if="showDate != 0 && (showDate == 1 || log.show.date)" class="log__time__higher">
{{log.context.time | date: 'EEE MMM dd yyyy'}} {{log.context.time | date: 'EEE MMM dd yyyy'}}
</span> </span>
@ -9,14 +10,14 @@
</span> </span>
</span> </span>
<span class="log__item log__tags"> <span class="log__item log__tags" ng-if="showTags != 0 && (showTags == 1 || log.show.tags)">
<span ng-if="showTags != 0 && (showTags == 1 || log.show.tags)"> <span>
<span ng-repeat="tag in log.context.tags" class="log__tag bck-tag">{{handleTags(tag)}}</span> <span ng-repeat="tag in log.context.tags" class="log__tag bck-tag">{{handleTags(tag)}}</span>
</span> </span>
</span> </span>
<span class="log__item log__location"> <span class="log__item log__location" ng-if="showFile != 0 && (showFile == 1 || log.show.location)" >
<span ng-if="showFile != 0 && (showFile == 1 || log.show.location)" class="bck-tag"> <span class="bck-tag">
{{log.context.location.filename}}:{{log.context.location.line}} {{log.context.location.filename}}:{{log.context.location.line}}
</span> </span>
</span> </span>

View file

@ -447,8 +447,9 @@ body {
display: table-cell; display: table-cell;
padding: 0 6px; padding: 0 6px;
padding-right: 3px; padding-right: 6px;
text-align: left; text-align: left;
padding-left: 0;
} }
.log__tags { .log__tags {
background: #111; background: #111;
@ -473,6 +474,7 @@ body {
/* top: -10px; */ /* top: -10px; */
border-left: 1px solid #222; border-left: 1px solid #222;
/* box-shadow: inset 2px 0 2px -2px #000; */ /* box-shadow: inset 2px 0 2px -2px #000; */
padding-left: 6px;
} }
.log__json { .log__json {
white-space: pre-wrap; white-space: pre-wrap;