-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New endpoint to download markdown version of a release (#1466)
* New endpoint to download markdown version of a release * Remove release date from the template * Fix linting on version.py * Fix trailing whitespace * Fix other linting error * Comment codecov for now
- Loading branch information
Showing
8 changed files
with
241 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
django_project/changes/templates/version/detail-content-md.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% load custom_markup %} | ||
{% load thumbnail %} | ||
|
||
<h1> | ||
Changelog for {{ version.project }} {{ version.name }} | ||
</h1> | ||
|
||
{% if version.image_file %} | ||
<img class="img-responsive img-rounded center-block" | ||
src="{{ version.image_file.url }}"/> | ||
{% endif %} | ||
|
||
{% if version.description %} | ||
{{ version.description|base_markdown }} | ||
{% endif %} | ||
|
||
{% for row in version.categories %} | ||
{% if row.entries %} | ||
<h2 class="text-muted"> | ||
{{ row.category.name }} | ||
</h2> | ||
{% for entry in row.entries %} | ||
{% include "entry/includes/entry_detail_rst.html" %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %}{# row loop #} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters