-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: allow renaming of folders, allow removing of pages without t…
…heir attachments - Renaming of folders was brought up in #149. - Deleting pages without deleting their subpages (subpages are technically just attachments) was brought up in #150.
- Loading branch information
Showing
7 changed files
with
44 additions
and
24 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 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
15 changes: 15 additions & 0 deletions
15
otterwiki/templates/snippets/navbardropdown_rename_remove.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,15 @@ | ||
{#- vim: set et ts=8 sts=4 sw=4 ai: -#} | ||
{% if has_permission('WRITE') %} | ||
<a href="{{ url_for('rename', path=pagepath) }}" class="dropdown-item-with-icon"> | ||
<span class="dropdown-icon"> | ||
<i class="far fa-edit"></i> | ||
</span> | ||
Rename | ||
</a> | ||
<a href="{{ url_for('delete', path=pagepath) }}" class="dropdown-item-with-icon"> | ||
<span class="dropdown-icon"> | ||
<i class="far fa-trash-alt"></i> | ||
</span> | ||
Delete | ||
</a> | ||
{% endif %} |
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