Commit 02526a93 authored by Samuel GAIST's avatar Samuel GAIST Committed by Samuel GAIST

[algorithms][templates] Removed edition related code

parent bf777c01
This diff is collapsed.
......@@ -43,16 +43,6 @@
<a class="btn btn-default btn-delete" onclick="modal_delete('algorithm', '{{ object.fullname }}', '{% url 'api_algorithms:all' %}', '{% url 'algorithms: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 -->
{% if object.valid %}
<a class="btn btn-default btn-new-version" href="{% url 'algorithms:new-version' object.name %}" data-toggle="tooltip" data-placement="bottom" title="New version"><i class="fa fa-copy fa-lg"></i></a>
{% endif %}
<!-- Edit, needs to be modifiable -->
{% if object.modifiable %}
<a class="btn btn-default btn-edit" href="{% url 'algorithms: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 %}
<!-- Edit, as admin -->
......@@ -60,11 +50,6 @@
<a class="btn btn-default btn-edit" href="{% url 'admin:algorithms_algorithm_change' object.id %}" data-toggle="tooltip" data-placement="bottom" title="Edit as admin"><i class="fa fa-cogs fa-lg"></i></a>
{% endif %}
{% if object.valid and open_source and not request.user.is_anonymous %}
<!-- Fork button, needs to be logged in -->
<a class="btn btn-default btn-fork" href="{% url 'algorithms: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 %}
<!-- Search, works for logged-in and anonymous users -->
{% if object.valid %}
<a class="btn btn-default btn-search" href="{% url 'search:search' %}?query=type:results%20{% if object.analysis %}analyzer{% else %}algo{% endif %}:{{ object.fullname }}" data-toggle="tooltip" data-placement="bottom" title="Search experiments"><i class="fa fa-search fa-lg"></i></a>
......
......@@ -267,13 +267,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 'algorithms:edit' object.author.username object.name object.version %}"><i class="fa fa-edit fa-lg"></i> Edit</a>
</div>
{% endif %}
</div>
{% if open_source and not object.is_binary %}
......
......@@ -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 'algorithms: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