Skip to content

Add "edit" and "view docs" buttons to subproject list #3572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 30, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions readthedocs/templates/projects/projectrelationship_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,22 @@
<ul>
{% for subproject in object_list %}
<li class="module-item">
<div class="subproject-name">
<a href="{% url 'projects_subprojects_update' project_slug=project.slug subproject_slug=subproject.child.slug %}">
<a href="{% url 'projects_manage' project_slug=subproject.child.slug %}">
{{ subproject.child }}
</a>
</div>

<div class="subproject-meta">
<a href="{% url 'projects_manage' project_slug=subproject.child.slug %}">
{% trans "Project page" %}</a>
&nbsp;&dash;&nbsp;
<a href="{{ subproject.get_absolute_url }}">
{{ subproject.get_absolute_url }}
</a>
</div>
<ul class="module-item-menu">
<li>
<a href="{{ subproject.get_absolute_url }}">
{% trans "View Docs" %}
</a>
</li>
<li>
<a href="{% url 'projects_subprojects_update' project_slug=project.slug subproject_slug=subproject.child.slug %}">
{% trans "Edit" %}
</a>
</li>
</ul>
</li>
{% empty %}
<li class="module-item">
Expand Down