Add line number

This commit is contained in:
Guillaume Wuip 2014-12-22 22:06:12 +01:00
parent 769dffe77d
commit e61c249c9c
4 changed files with 24 additions and 6 deletions

View file

@ -21,6 +21,14 @@
*/
log : "=",
/**
* number
*
* Line number
* @type {Int}
*/
number : "=",
/**
* showFile
*

View file

@ -1,5 +1,9 @@
<p ng-class="{'log--collapse' : collapse == true, 'log': true}">
<span class="log__item log__number">
{{number}}
</span>
<span class="log__item log__collapse">
<span ng-if="isMultilines()" ng-click="changeState()">
<span ng-if="collapse"></span>

View file

@ -8,6 +8,7 @@
<log
ng-repeat="line in lines | orderBy : order : reverse | filter : search track by $index"
log="line"
number="$index"
show-file="showFile"
show-time="showTime"
show-date="showDate"

View file

@ -439,7 +439,7 @@ body {
/* width: 100%; */
text-align: left;
/* padding: 15px; */
border-left: 15px solid #111;
border-left: 5px solid #111;
}
.log {
display: table-row;
@ -456,6 +456,16 @@ body {
padding-bottom: 2px;
padding-right: 6px;
padding-left: 0;
}
.log__number,
.log__collapse,
.log__time,
.log__location {
background: #111;
}
.log__number {
text-align: right;
}
.log__collapse {
font-size: 12px;
@ -468,11 +478,6 @@ body {
}
.log__tags {
background: #111;
}
.log__collapse,
.log__time,
.log__location {
background: #111;
}
.log__location > span {
color: #2980b9;