Browse Source

Add an ellipsis to authors, tags and series. re #79

Will certainly make it unusable for people using a lot of tags ..... let's wait for remarks!
master
Sébastien Lucas 9 years ago
parent
commit
2a5dc86484
2 changed files with 8 additions and 3 deletions
  1. +5
    -0
      templates/bootstrap/file.html
  2. +3
    -3
      templates/bootstrap/main.html

+ 5
- 0
templates/bootstrap/file.html View File

@@ -54,6 +54,11 @@
display:block;
}
.ellipsis {
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
display:block;
}
.panel-heading { padding: 10px 7px; }
.panel { margin-bottom: 5px; }


+ 3
- 3
templates/bootstrap/main.html View File

@@ -39,9 +39,9 @@
</a>
</div>
{{?}}
<span class="glyphicon glyphicon-user"></span> <span class="sa">{{=htmlspecialchars (entry.book.authorsName)}}</span>
{{? entry.book.tagsName != ""}}<br /><span class="glyphicon glyphicon-tag"></span> <span class="se">{{=htmlspecialchars (entry.book.tagsName)}}</span>{{?}}
{{? entry.book.seriesName != ""}}<br /><span class="glyphicon glyphicon-list"></span> <span class="ss">{{=htmlspecialchars (entry.book.seriesName)}} ({{=entry.book.seriesIndex}})</span>{{?}}
<div class="ellipsis"><span class="glyphicon glyphicon-user"></span> <span class="sa">{{=htmlspecialchars (entry.book.authorsName)}}</span></div>
{{? entry.book.tagsName != ""}}<div class="ellipsis"><span class="glyphicon glyphicon-tag"></span> <span class="se">{{=htmlspecialchars (entry.book.tagsName)}}</span></div>{{?}}
{{? entry.book.seriesName != ""}}<div class="ellipsis"><span class="glyphicon glyphicon-list"></span> <span class="ss">{{=htmlspecialchars (entry.book.seriesName)}} ({{=entry.book.seriesIndex}})</span></div>{{?}}
<div class="text-center bottomright">
{{~entry.book.preferedData:data:j}}
<a href="{{=data.url}}" class="btn btn-primary btn-sm" role="button">{{=data.name}}</a>


Loading…
Cancel
Save