project_detail.html 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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: 10px 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:{{ "[NO_SPAM]"+project.email }}"><i class="icon-envelope"></i> {{ project.email|e|replace("@", '<span style="display: none">PWET</span>@'|safe) }}</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_row.is_ffdn_member %}
  62. <dt>{{ _("FFDN Member") }}</dt>
  63. <dd>
  64. {%- if project.ffdnMemberSince -%}
  65. {% trans date=project_row.str2date(project.ffdnMemberSince)|dateformat('medium') %}Yes, since {{ date }}{% endtrans %}
  66. {%- else -%}
  67. {{ _("Yes") }}
  68. {%- endif -%}
  69. </dd>
  70. {%- endif %}
  71. {%- if project.memberCount %}
  72. {{ field(_("members")) }}
  73. <dd>{{ project.memberCount }}</dd>
  74. {%- endif %}
  75. {%- if project.subscriberCount %}
  76. {{ field(_("subscribers")) }}
  77. <dd>{{ project.subscriberCount }}</dd>
  78. {%- endif %}
  79. {%- if project.chatrooms %}
  80. {{ field(_("chatrooms")) }}
  81. {% for c in project.chatrooms -%}
  82. <dd><code>{{ c }}</code></dd>
  83. {%- endfor -%}
  84. {%- endif %}
  85. {%- if project.coordinates %}
  86. {{ field(_("coordinates")) }}
  87. <dd><code style="color: #666;">{{ project.coordinates.latitude }},{{ project.coordinates.longitude }}</code></dd>
  88. {%- endif %}
  89. </dl>
  90. </div>
  91. </div>
  92. {%- endblock %}