Rev908, Sidebar shorten long bad filenames, Only show opener error if site is using the API
This commit is contained in:
parent
b2fb1fcd3c
commit
58fa5f6e16
6 changed files with 47 additions and 48 deletions
|
@ -149,7 +149,7 @@ class UiWebsocketPlugin(object):
|
|||
else:
|
||||
percent = 100 * (float(size) / size_total)
|
||||
percent = math.floor(percent*100)/100 # Floor to 2 digits
|
||||
body.append(u"<li style='width: %.2f%%' class='%s back-%s' title='%s'></li>" % (percent, extension, color, extension))
|
||||
body.append(u"""<li style='width: %.2f%%' class='%s back-%s' title="%s"></li>""" % (percent, extension, color, extension))
|
||||
|
||||
# Legend
|
||||
body.append("</ul><ul class='graph-legend'>")
|
||||
|
@ -202,7 +202,7 @@ class UiWebsocketPlugin(object):
|
|||
body.append("""
|
||||
<li>
|
||||
<label>Size limit <small>(limit used: {percent_used:.0%}, free space: {free_space:,d}MB)</small></label>
|
||||
<input type='text' class='text text-num' value='{size_limit}' id='input-sitelimit'/><span class='text-post'>MB</span>
|
||||
<input type='text' class='text text-num' value="{size_limit}" id='input-sitelimit'/><span class='text-post'>MB</span>
|
||||
<a href='#Set' class='button' id='button-sitelimit'>Set</a>
|
||||
</li>
|
||||
""".format(**locals()))
|
||||
|
@ -262,7 +262,7 @@ class UiWebsocketPlugin(object):
|
|||
""")
|
||||
|
||||
for bad_file in site.bad_files.keys():
|
||||
body.append("<li class='color-red'>%s</li>" % cgi.escape(bad_file, True))
|
||||
body.append("""<li class='color-red' title="%s">%s</li>""" % (cgi.escape(bad_file, True), cgi.escape(bad_file, True)))
|
||||
|
||||
body.append("""
|
||||
</ul>
|
||||
|
@ -278,7 +278,7 @@ class UiWebsocketPlugin(object):
|
|||
body.append(u"""
|
||||
<li>
|
||||
<label>Database <small>({size:.2f}kB)</small></label>
|
||||
<input type='text' class='text disabled' value='{inner_path}' disabled='disabled'/>
|
||||
<input type='text' class='text disabled' value="{inner_path}" disabled='disabled'/>
|
||||
<a href='#Reindex' class='button' style='display: none'>Reindex</a>
|
||||
</li>
|
||||
""".format(**locals()))
|
||||
|
|
|
@ -67,6 +67,7 @@
|
|||
|
||||
.filelist { font-size: 12px; font-family: monospace; margin: 0px; padding: 0px; list-style-type: none; line-height: 1.5em; }
|
||||
.filelist li:before { content: '\2022'; font-size: 11px; line-height: 0px; vertical-align: 0px; margin-right: 5px; color: #FFBE00; }
|
||||
.filelist li { overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
/* COLORS */
|
||||
|
||||
|
|
|
@ -121,6 +121,7 @@
|
|||
|
||||
.filelist { font-size: 12px; font-family: monospace; margin: 0px; padding: 0px; list-style-type: none; line-height: 1.5em; }
|
||||
.filelist li:before { content: '\2022'; font-size: 11px; line-height: 0px; vertical-align: 0px; margin-right: 5px; color: #FFBE00; }
|
||||
.filelist li { overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
/* COLORS */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue