diff options
Diffstat (limited to 'templates/work.html')
-rw-r--r-- | templates/work.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/work.html b/templates/work.html new file mode 100644 index 0000000..f51571b --- /dev/null +++ b/templates/work.html @@ -0,0 +1,33 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block thumbail %}{{ this.thumbnail }}{% endblock %} +{% block body %} +<div class="workdescription"> + <h1>{{ this.title }}</h1> + <table style="width:100%"> + <tr> + <th></th> + </tr> + <tr> + <td class="work">{{ bag('translation', this.alt, 'time') }}: {{ this.year_start|dateformat('Y-MM-dd') }} - {% if this.ongoing == True %}{{ bag('translation', this.alt, 'ongoing') }}{% else %} {{ this.year_end|dateformat('Y-MM-dd') }} {% endif %}</td> + </tr> + {% if this.format %}<tr> + <td class="work">{{bag('translation', this.alt, 'format')}}: {{this.format}}</td> + </tr>{% endif %} + {% if this.tfwebsite == True %}<tr> + <td class="work">{{bag('translation', this.alt, 'website')}}: <a href="{{ this.website }}">{{this.website}}</a></td> + </tr>{% endif %} + {% if this.tfrepo == True %}<tr> + <td class="work">Repository: <a href="{{ this.website }}">{{this.repo}}</a> </td> + </tr>{% endif %} + {% if this.tfcollaborator == true %}<tr> + <td class="work">{{bag('translation', this.alt, 'collaborators')}}: {% for collaborator in this.collaborators.blocks %}{{ collaborator }} {% endfor %}</td> + </tr>{% endif %} + </table> +</div> +<div class="pagework"> + <div class="pageinner"> + {{ this.content }} + </div> +</div> +{% endblock %} |