Add link to previous versions in mod_detail page
This commit is contained in:
parent
951c149a7f
commit
8eedad2a02
@ -17,7 +17,11 @@
|
||||
{% if version.ver == view_version.ver %}
|
||||
<h4><strong>{{ version.ver }}</strong></h4>
|
||||
{% else %}
|
||||
<h4>{{ version.ver }}</h4>
|
||||
<h4>
|
||||
<a href="{% url 'mod_detail' pk=module.id req_ver=version.ver %}">
|
||||
{{ version.ver }}
|
||||
</a>
|
||||
</h4>
|
||||
{% endif %}
|
||||
<h5>Dependencies</h5>
|
||||
{% for deps in dependencies %}
|
||||
|
@ -29,24 +29,6 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<!-- {% for i in '123'|make_list %}
|
||||
<div class="col-md-4 my-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5 class="card-title">Card title</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h6 class="card-subtitle mb-2 text-muted">Card subtitle - Description</h6>
|
||||
<p class="card-text">Donec id elit non mi porta gravida at eget metus. Fusce dapibus,
|
||||
tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo
|
||||
sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
|
||||
</p>
|
||||
<p><a class="btn btn-secondary" href="#" role="button">View details »</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %} -->
|
||||
</div>
|
||||
</main>
|
||||
{% endblock main %}
|
||||
|
@ -65,6 +65,7 @@ class ModuleDetailView(View):
|
||||
'mdreadme': markdownify(view_version.readme),
|
||||
})
|
||||
|
||||
|
||||
class UploadView(LoginRequiredMixin, FormView):
|
||||
form_class = FileFieldForm
|
||||
template_name = 'store/upload.html'
|
||||
|
Loading…
Reference in New Issue
Block a user