• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Revisionaaa49753cdc02320e9b37f1251e50dab976bc009 (tree)
Zeit2012-04-20 05:54:24
AutorTim Van Steenburgh <tvansteenburgh@geek...>
CommiterYaroslav Luzin

Log Message

[#2827] Fix for "can't create new search bin if none exist."

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@geek.net>

Ändern Zusammenfassung

Diff

--- a/ForgeTracker/forgetracker/templates/tracker/bin.html
+++ b/ForgeTracker/forgetracker/templates/tracker/bin.html
@@ -12,7 +12,6 @@
1212 {% block header %}Saved Search Bins{% endblock %}
1313
1414 {% block content %}
15- {% if bins.__len__() %}
1615 <form action="{{c.project.url()}}admin/{{app.config.options.mount_point}}/bins/update_bins" method="post" class="update_bins">
1716 <table>
1817 <thead>
@@ -23,6 +22,9 @@
2322 </tr>
2423 </thead>
2524 <tbody class="bin-list">
25+ {% if not bins %}
26+ <tr><td colspan="3">No saved search bins have been created yet.</td></tr>
27+ {% endif %}
2628 {% for bin in bins %}
2729 <tr{% if loop.index0 % 2 == 0 %} class="even"{% endif %}>
2830 <td class="view" {% if bin.error %}style="display:none"{% endif %}><a href="{{bin.url()}}">{{bin.summary}}</a></td>
@@ -45,7 +47,7 @@
4547 <tr class="new_bin" {% if not (new_bin and new_bin.error) %}style="display:none"{% endif %}>
4648 <td {% if new_bin and new_bin.error %}style="vertical-align:top"{% endif %}>
4749 <input type="hidden" name="bins-{{num_bins}}.id">
48- <input type="hidden" name="bins-{{loop.index0}}.delete" value="False" class="delete_flag">
50+ <input type="hidden" name="bins-{{num_bins}}.delete" value="False" class="delete_flag">
4951 <input type="text" name="bins-{{num_bins}}.summary" placeholder="Summary" {% if new_bin %}value="{{new_bin.summary}}"{% endif %}>
5052 </td>
5153 <td>
@@ -67,9 +69,6 @@
6769 {% endif %}
6870 </div>
6971 </form>
70- {% else %}
71- No saved search bins have been created yet.
72- {% endif %}
7372 {{c.search_help_modal.display()}}
7473 {% endblock %}
7574