mirror of
https://github.com/vale981/quickdocs-server
synced 2025-03-04 16:51:38 -05:00
Show raw README when converted one doesn't exist in DB.
This commit is contained in:
parent
6e53947981
commit
12af7fb19d
2 changed files with 4 additions and 2 deletions
|
@ -69,7 +69,9 @@
|
||||||
:repos-url ,(project-repos-url project)
|
:repos-url ,(project-repos-url project)
|
||||||
:archive-url ,(project-archive-url project)
|
:archive-url ,(project-archive-url project)
|
||||||
:readme ,(let ((readme (project-readme project)))
|
:readme ,(let ((readme (project-readme project)))
|
||||||
(when readme (project-readme-converted readme)))
|
(when readme
|
||||||
|
(list :converted (project-readme-converted readme)
|
||||||
|
:raw (project-readme-raw readme))))
|
||||||
:authors ,(project-authors project)
|
:authors ,(project-authors project)
|
||||||
:maintainers ,(project-maintainers project)
|
:maintainers ,(project-maintainers project)
|
||||||
:licenses ,(project-licenses project)
|
:licenses ,(project-licenses project)
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<article>
|
<article>
|
||||||
{% if readme %}
|
{% if readme %}
|
||||||
<section class="readme">
|
<section class="readme">
|
||||||
<div class="readme-body">{{ readme | safe }}</div>
|
<div class="readme-body">{% if readme.converted %}{{ readme.converted | safe }}{% else %}<pre>{{ readme.raw }}</pre>{% endif %}</div>
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue