mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Replace edit / delete links by icons. Fix #49.
This commit is contained in:
parent
d1b641b45e
commit
5963d7df9d
4 changed files with 21 additions and 2 deletions
|
@ -126,3 +126,16 @@ div.topbar ul.secondary-nav { padding-right: 75px; }
|
|||
.confirm, .confirm:hover {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.bill-actions {
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.edit img {
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.delete img {
|
||||
height: 24px;
|
||||
}
|
||||
|
|
BIN
budget/static/pen.png
Normal file
BIN
budget/static/pen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
BIN
budget/static/scissors.png
Normal file
BIN
budget/static/scissors.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
|
@ -104,8 +104,14 @@
|
|||
<td>{{ bill.what }}</td>
|
||||
<td>{% for ower in bill.owers %}{{ ower.name }} {% endfor %}</td>
|
||||
<td>{{ "%0.2f"|format(bill.amount) }} ({{ "%0.2f"|format(bill.pay_each()) }} {{ _("each") }})</td>
|
||||
<td><a href="{{ url_for(".edit_bill", bill_id=bill.id) }}">{{ _("edit") }}</a>
|
||||
<a class="delete" href="{{ url_for(".delete_bill", bill_id=bill.id) }}">{{ _("delete") }}</a></td>
|
||||
<td class="bill-actions">
|
||||
<a class="edit" href="{{ url_for(".edit_bill", bill_id=bill.id) }}" title="{{ _("edit") }}">
|
||||
<img src="{{ url_for("static", filename="pen.png") }}" />
|
||||
</a>
|
||||
<a class="delete" href="{{ url_for(".delete_bill", bill_id=bill.id) }}" title="{{ _("delete") }}">
|
||||
<img src="{{ url_for("static", filename="scissors.png") }}" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in a new issue