mirror of
https://github.com/jazzband/django-constance.git
synced 2026-04-30 11:44:48 +00:00
Add anchors in admin (#402)
* Add anchors in admin * Fix whitespace * Add some css
This commit is contained in:
parent
a304c4f865
commit
788616d70c
2 changed files with 17 additions and 3 deletions
|
|
@ -13,6 +13,16 @@
|
|||
.help {
|
||||
font-weight: normal !important;
|
||||
}
|
||||
#results{
|
||||
#results {
|
||||
overflow-x: auto;
|
||||
}
|
||||
}
|
||||
.item-anchor {
|
||||
visibility: hidden;
|
||||
margin-left: .1em;
|
||||
}
|
||||
.item-name {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.item-name:hover .item-anchor {
|
||||
visibility: visible;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,11 @@
|
|||
{% for item in config_values %}
|
||||
<tr class="{% cycle 'row1' 'row2' %}">
|
||||
<th>
|
||||
{{ item.name }} <div class="help">{{ item.help_text|linebreaksbr }}</div>
|
||||
<span class="item-name" id="{{ item.name|slugify }}">
|
||||
{{ item.name }}
|
||||
<a class="item-anchor" href="#{{ item.name|slugify }}" title="Link to this setting">¶</a>
|
||||
</span>
|
||||
<div class="help">{{ item.help_text|linebreaksbr }}</div>
|
||||
</th>
|
||||
<td>
|
||||
{{ item.default|linebreaks }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue