mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
Use format-agnostic README nomenclature instead of hinting at README.md
Also fixes "Head's up!" – the heads are to be up, rather than some head
being up excitingly
Fixes d24e508cd4
This commit is contained in:
parent
dff8093560
commit
4d009f9c9a
|
@ -151,8 +151,8 @@
|
||||||
{% if current_user and current_user.id == project.owner_id
|
{% if current_user and current_user.id == project.owner_id
|
||||||
and not summary and not summary_error %}
|
and not summary and not summary_error %}
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<strong>Head's up!</strong> This project is configured to use
|
<strong>Heads up!</strong>
|
||||||
"<code>README.md</code>" from
|
This project is configured to use a README from
|
||||||
<a href="{{project.summary_repo.url()}}">
|
<a href="{{project.summary_repo.url()}}">
|
||||||
{{project.summary_repo.owner.canonical_name}}/{{project.summary_repo.name}}
|
{{project.summary_repo.owner.canonical_name}}/{{project.summary_repo.name}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -168,7 +168,7 @@
|
||||||
{{summary}}
|
{{summary}}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
An internal error occured fetching the README.md for this project.
|
An internal error occured fetching the README for this project.
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -181,9 +181,9 @@
|
||||||
repositor{{"ies" if len(project.source_repos) > 1 else "y"}}
|
repositor{{"ies" if len(project.source_repos) > 1 else "y"}}
|
||||||
to this project. Would you like to display
|
to this project. Would you like to display
|
||||||
{% if len(project.source_repos) > 1 %}
|
{% if len(project.source_repos) > 1 %}
|
||||||
one of the README.md files
|
one of the README files
|
||||||
{% else %}
|
{% else %}
|
||||||
the README.md file
|
the README file
|
||||||
{% endif %}
|
{% endif %}
|
||||||
on this page?
|
on this page?
|
||||||
</div>
|
</div>
|
||||||
|
@ -202,7 +202,7 @@
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
class="pull-right btn btn-primary btn-lg"
|
class="pull-right btn btn-primary btn-lg"
|
||||||
>Use README.md {{ icon("caret-right") }}</button>
|
>Use README {{ icon("caret-right") }}</button>
|
||||||
<a
|
<a
|
||||||
href="{{repo.url()}}"
|
href="{{repo.url()}}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
title="This repository is already in use as the project summary"
|
title="This repository is already in use as the project summary"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
>
|
>
|
||||||
Use README.md {{icon('caret-right')}}
|
Use README {{icon('caret-right')}}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
<a
|
<a
|
||||||
|
|
Loading…
Reference in New Issue