project_list.html 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. {% extends "layout.html" %}
  2. {% block page_title %}{{ _("Project List") }}{% endblock %}
  3. {% block body %}
  4. <div>
  5. <table class="project-list table table-condensed table-striped table-hover">
  6. <thead>
  7. <tr>
  8. <th>{{ _("Name") }}</th>
  9. <th>{{ _("Areas") }}</th>
  10. <th>{{ _("Step")}}</th>
  11. <th></th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. {% for project in projects -%}
  16. <tr>
  17. <td><a href="{{ url_for('project', projectid=project.id) }}">{{ project.name }}</a></td>
  18. <td>{{ ', '.join(project.covered_areas_names())|truncate(30) }}</td>
  19. <td>
  20. {{ project.json.progressStatus|step_to_label|safe }}
  21. {%- if project.is_ffdn_member %}
  22. &thinsp;<a href="#" rel="tooltip" data-placement="right" title="{{ _("Member of the FDN Federation") }}"><span class="label label-info">FFDN</span></a>
  23. {%- endif %}
  24. </td>
  25. <td><a class="pull-right btn btn-small" title="{{ _("Examine") }}" href="{{ url_for('project', projectid=project.id) }}"><i class="icon-search"></i></a>
  26. </tr>
  27. {% endfor -%}
  28. </tbody>
  29. </table>
  30. <a class="pull-right btn btn-primary btn-small" href="{{ url_for('add_project') }}">{{ _("Add my project") }}</a>
  31. </div>
  32. {% endblock %}