-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update filesfolders tour help (#1102), refactor
- Loading branch information
Showing
22 changed files
with
210 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% load rules %} | ||
|
||
{# Projectroles dependency #} | ||
{% load projectroles_common_tags %} | ||
|
||
{% has_perm 'filesfolders.update_data_own' request.user file.project as can_update_own %} | ||
{% has_perm 'filesfolders.update_data_all' request.user file.project as can_update_all %} | ||
|
||
<button class="btn btn-secondary dropdown-toggle sodar-list-dropdown" | ||
type="button" data-toggle="dropdown" aria-expanded="false"> | ||
<i class="iconify" data-icon="mdi:cog"></i> | ||
</button> | ||
<div class="dropdown-menu dropdown-menu-right sodar-ff-file-dropdown"> | ||
{% if can_update_all or file.owner == request.user and can_update_own %} | ||
<a href="{% url 'filesfolders:file_update' item=file.sodar_uuid %}" | ||
class="dropdown-item" > | ||
<i class="iconify" data-icon="mdi:lead-pencil"></i> Update File | ||
</a> | ||
<a href="{% url 'filesfolders:file_delete' item=file.sodar_uuid %}" | ||
class="dropdown-item text-danger"> | ||
<i class="iconify" data-icon="mdi:close-thick"></i> Delete File | ||
</a> | ||
{% get_history_dropdown obj=file project=file.project as history_item %} | ||
{{ history_item|safe }} | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{# Projectroles dependency #} | ||
{% load projectroles_common_tags %} | ||
|
||
<button class="btn btn-secondary dropdown-toggle sodar-list-dropdown" | ||
type="button" data-toggle="dropdown" aria-expanded="false"> | ||
<i class="iconify" data-icon="mdi:cog"></i> | ||
</button> | ||
<div class="dropdown-menu dropdown-menu-right sodar-ff-folder-dropdown"> | ||
<a href="{% url 'filesfolders:folder_update' item=item.sodar_uuid %}" | ||
class="dropdown-item" > | ||
<i class="iconify" data-icon="mdi:lead-pencil"></i> Update Folder | ||
</a> | ||
<a href="{% url 'filesfolders:folder_delete' item=item.sodar_uuid %}" | ||
class="dropdown-item text-danger"> | ||
<i class="iconify" data-icon="mdi:close-thick"></i> Delete Folder | ||
</a> | ||
{% get_history_dropdown obj=folder project=folder.project as history_item %} | ||
{{ history_item|safe }} | ||
</div> |
19 changes: 0 additions & 19 deletions
19
filesfolders/templates/filesfolders/_hyperlink_buttons.html
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
filesfolders/templates/filesfolders/_hyperlink_dropdown.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{# Projectroles dependency #} | ||
{% load projectroles_common_tags %} | ||
|
||
<button class="btn btn-secondary dropdown-toggle sodar-list-dropdown" | ||
type="button" data-toggle="dropdown" aria-expanded="false"> | ||
<i class="iconify" data-icon="mdi:cog"></i> | ||
</button> | ||
<div class="dropdown-menu dropdown-menu-right sodar-ff-hyperlink-dropdown"> | ||
<a href="{% url 'filesfolders:hyperlink_update' item=link.sodar_uuid %}" | ||
class="dropdown-item"> | ||
<i class="iconify" data-icon="mdi:lead-pencil"></i> Update Link | ||
</a> | ||
<a href="{% url 'filesfolders:hyperlink_delete' item=link.sodar_uuid %}" | ||
class="dropdown-item text-danger"> | ||
<i class="iconify" data-icon="mdi:close-thick"></i> Delete Link | ||
</a> | ||
{% get_history_dropdown obj=link project=link.project as history_item %} | ||
{{ history_item|safe }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,7 +131,6 @@ <h3> | |
</div> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
|
||
{% endblock projectroles_extend %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,6 @@ <h3>Confirm Folder Deletion</h3> | |
</div> | ||
</form> | ||
{% endif %} | ||
|
||
</div> | ||
|
||
{% endblock projectroles_extend %} |
Oops, something went wrong.