Mercurial > agora
comparison templates/bundle/bundle.djhtml @ 184:b711f0087709
Use DESCRIPTION file for bundles (SCHEMA CHANGE)
* Added two new fields to the Bundle model:
* octave_format, which allows users to specify if their bundle has
been formatted according to octave packaging standards or not
* description_file, which points to a file named DESCRIPTION in
the root directory (or the next top-level directory), if the
octave_format checkbox is ticked and if one exists
* Fixed the uploader field for form by making it a hidden input and
preventing hidden inputs from showing up entirely
author | dellsystem <ilostwaldo@gmail.com> |
---|---|
date | Sat, 27 Oct 2012 15:58:08 -0400 |
parents | a803a1544126 |
children | baf8776dc44d 4033ebe1867f |
comparison
equal
deleted
inserted
replaced
183:cdcbfaa65cfe | 184:b711f0087709 |
---|---|
72 {% else %} | 72 {% else %} |
73 <p>This file is a binary file.</p> | 73 <p>This file is a binary file.</p> |
74 <p><a href="#">Download file (feature not yet available)</a></p> | 74 <p><a href="#">Download file (feature not yet available)</a></p> |
75 {% endif %} | 75 {% endif %} |
76 {% else %} | 76 {% else %} |
77 <p><strong>Description:</strong> {{ bundle.description|default:"N/A" }}</p> | 77 <h2>Description</h2> |
78 {% if bundle.description %} | |
79 <p>{{ bundle.description }}</p> | |
80 {% else %} | |
81 {% if bundle.description_file %} | |
82 <p class="bundle-description">{{ bundle.description_file.code|safe }}</p> | |
83 {% else %} | |
84 <p>N/A</p> | |
85 {% endif %} | |
86 {% endif %} | |
87 | |
88 {% if bundle.description %} | |
78 <p><strong>License:</strong> {{ bundle.free_license }}</p> | 89 <p><strong>License:</strong> {{ bundle.free_license }}</p> |
79 <p><strong>Latest version number:</strong> {{ bundle.latest_version }}</p> | 90 <p><strong>Latest version number:</strong> {{ bundle.latest_version }}</p> |
91 {% endif %} | |
80 {% if previous_versions %} | 92 {% if previous_versions %} |
81 <h3>Versions</h3> | 93 <h3>Versions</h3> |
82 <ul> | 94 <ul> |
83 {% for version in previous_versions reversed %} | 95 {% for version in previous_versions reversed %} |
84 <li> | 96 <li> |