Changeset - 99f7ec293293
[Not reviewed]
default
0 1 0
Thomas De Schampheleire - 8 years ago 2018-05-21 14:44:15
thomas.de_schampheleire@nokia.com
admin: system info: add title attribute for truncated items

On the System Info page, the item names may be truncated, e.g. "Kallithea
configur...". In these cases, it is not possible for a user to retrieve the
full name.

Add a title attribute that will show the full name on hover.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/admin/settings/settings_system.html
Show inline comments
 
<div id="update_notice" style="display: none">
 
    <div>${_('Checking for updates...')}</div>
 
</div>
 

	
 
<%
 
 elems = [
 
    (_('Kallithea version'), h.literal('%s <b><span id="check_for_update" style="display:none">%s</span></b>' % (c.kallithea_version, _('Check for updates'))), ''),
 
    (_('Kallithea configuration file'), c.ini['__file__'], ''),
 
    (_('Python version'), c.py_version, ''),
 
    (_('Platform'), c.platform, ''),
 
    (_('Git version'), c.git_version, ''),
 
    (_('Git path'), c.ini.get('git_path'), ''),
 
    (_('Upgrade info endpoint'), h.literal('%s <br/><span class="text-muted">%s.</span>' % (c.update_url, _('Note: please make sure this server can access this URL'))), ''),
 
 ]
 
%>
 
<dl class="dl-horizontal">
 
%for dt, dd, tt in elems:
 
  <dt>${dt}:</dt>
 
  <dt title="${dt}">${dt}:</dt>
 
  <dd title="${tt}">${dd}</dd>
 
%endfor
 
</dl>
 

	
 
<h4>${_('Python Packages')}</h4>
 
<table class="table">
 
  <tbody>
 
      %for key, value in c.modules:
 
          <tr>
 
              <td>${key}</td>
 
              <td>${value}</td>
 
          </tr>
 
      %endfor
 
  </tbody>
 
</table>
 

	
 
<script>
 
    $('#check_for_update').click(function(e){
 
        var $update_notice = $('#update_notice');
 
        $update_notice.show();
 
        asynchtml(${h.js(h.url('admin_settings_system_update'))}, $update_notice);
 
    });
 
</script>
0 comments (0 inline, 0 general)