project_detail.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {% extends "layout.html" %}
  2. {% macro field(name) -%}
  3. <dt>{{ name|capitalize }}</dt>
  4. {%- endmacro %}
  5. {% block page_title -%}
  6. {% trans project_name=project.name -%}
  7. <small>Project:</small> {{ project_name }}
  8. {%- endtrans %}
  9. {%- endblock %}
  10. {% block page_header %}
  11. {{ super() }}
  12. <a class="btn btn-success btn-small pull-right" style="margin: 15px 10px 0;" href="{{ url_for('edit_project', projectid=project_row.id) }}"><i class="icon-edit icon-white"></i> {{ _("Edit") }}</a>
  13. {% endblock %}
  14. {% block body %}
  15. <div class="row-fluid">
  16. <div class="pull-right">
  17. {%- if project.logoURL %}
  18. <a href="{{ project.website }}"><img alt="{{ project.name }}" src="{{ project.logoURL }}" style="max-width: 300px; margin: 30px 30px 0;" /></a>
  19. {%- endif %}
  20. </div>
  21. <div class="span6 offset1">
  22. <dl class="dl-horizontal">
  23. {{ field(_("name")) }}
  24. <dd>{{ project.name }}</dd>
  25. {%- if project.shortname %}
  26. {{ field(_("short name")) }}
  27. <dd>{{ project.shortname }}</dd>
  28. {%- endif %}
  29. {%- if project.description %}
  30. {{ field(_("description")) }}
  31. <dd>{{ project.description }}</dd>
  32. {%- endif %}
  33. {%- if project.coveredAreas %}
  34. {{ field(_("covered areas")) }}
  35. {% for a in project.coveredAreas -%}
  36. <dd>{{ a.name }} ({{ a.technologies|join(',') }})</dd>
  37. {%- endfor -%}
  38. {%- endif %}
  39. {%- if project.website %}
  40. {{ field(_("website")) }}
  41. <dd><a href="{{ project.website }}">{{ project.website }}</a></dd>
  42. {%- endif %}
  43. {%- if project.otherWebsites %}
  44. {{ field(_("other websites")) }}
  45. {% for n, w in project.otherWebsites.iteritems() -%}
  46. <dd>{{ n }}: <a href="{{ w }}">{{ w }}</a></dd>
  47. {%- endfor -%}
  48. {%- endif %}
  49. {%- if project.email %}
  50. {{ field(_("email")) }}
  51. <dd>{% if project.email %}<a href="mailto:{{ project.email }}"><i class="icon-envelope"></i> {{ project.email }}</a>{% else %}<em>None given</em>{% endif %}</dd>
  52. {%- endif %}
  53. {%- if project.mainMailingList %}
  54. {{ field(_("main mailing list")) }}
  55. <dd>{% if project.mainMailingList %}<a href="mailto:{{ project.mainMailingList }}"><i class="icon-envelope"></i> {{ project.mainMailingList }}</a>{% else %}<em>None given</em>{% endif %}</dd>
  56. {%- endif %}
  57. {%- if project.progressStatus %}
  58. {{ field(_("step")) }}
  59. <dd>{{ project.progressStatus|step_to_label|safe }}</dd>
  60. {%- endif %}
  61. {%- if project.memberCount %}
  62. {{ field(_("members")) }}
  63. <dd>{{ project.memberCount }}</dd>
  64. {%- endif %}
  65. {%- if project.subscriberCount %}
  66. {{ field(_("subscribers")) }}
  67. <dd>{{ project.subscriberCount }}</dd>
  68. {%- endif %}
  69. {%- if project.chatrooms %}
  70. {{ field(_("chatrooms")) }}
  71. {% for c in project.chatrooms -%}
  72. <dd><code>{{ c }}</code></dd>
  73. {%- endfor -%}
  74. {%- endif %}
  75. {%- if project.coordinates %}
  76. {{ field(_("coordinates")) }}
  77. <dd>{{ project.coordinates.latitude }} {{ project.coordinates.longitude }}</dd>
  78. {%- endif %}
  79. </dl>
  80. </div>
  81. </div>
  82. {% endblock %}