Commit e8484f4b authored by Samuel GAIST's avatar Samuel GAIST Committed by Samuel GAIST

[libraries][templates] Removed edition related code

parent 93554f1e
This diff is collapsed.
......@@ -41,13 +41,6 @@
<a class="btn btn-default btn-delete" onclick="modal_delete('library', '{{ object.fullname }}', '{% url 'api_libraries:all' %}', '{% url 'libraries:list' request.user.username %}');" data-toggle="tooltip" data-placement="bottom" title="Delete"><i class="fa fa-times fa-lg"></i></a>
{% endif %}
<!-- New version, needs to be the owner -->
<a class="btn btn-default btn-new-version" href="{% url 'libraries:new-version' object.name %}" data-toggle="tooltip" data-placement="bottom" title="New version"><i class="fa fa-copy fa-lg"></i></a>
<!-- Edit, needs to be modifiable -->
{% if object.modifiable %}
<a class="btn btn-default btn-edit" href="{% url 'libraries:edit' object.author.username object.name object.version %}" data-toggle="tooltip" data-placement="bottom" title="Edit"><i class="fa fa-edit fa-lg"></i></a>
{% endif %}
{% endifequal %}
......@@ -56,9 +49,4 @@
<a class="btn btn-default btn-edit" href="{% url 'admin:libraries_library_change' object.id %}" data-toggle="tooltip" data-placement="bottom" title="Edit as admin"><i class="fa fa-cogs fa-lg"></i></a>
{% endif %}
{% if open_source and not request.user.is_anonymous %}
<!-- Fork button, needs to be logged in -->
<a class="btn btn-default btn-fork" href="{% url 'libraries:fork' object.author.username object.name object.version %}" data-toggle="tooltip" data-placement="bottom" title="Fork"><i class="fa fa-code-fork fa-lg"></i></a>
{% endif %}
</div>
......@@ -82,13 +82,6 @@
</div>
{% endif %}
</div>
{% if owner and object.modifiable %}
<div class="col-sm-2 action-buttons">
<a id="btn-edit-object" class="btn btn-primary btn-sm pull-right" href="{% url 'libraries:edit' object.author.username object.name object.version %}"><i class="fa fa-edit fa-lg"></i> Edit</a>
</div>
{% endif %}
</div>
{% if open_source %}
......
......@@ -51,12 +51,6 @@
{% endif %}
<!-- Notice there can be no div space if vertical-center is used -->
</div><div class="col-sm-2 vertical-center">
{% if owner %}
<a class="btn btn-success btn-sm pull-right" href="{% url 'libraries:new' %}"><i class="fa fa-plus fa-lg"></i> New</a>
{% endif %}
</div><!-- col -->
</div><!-- row -->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment