-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I18nDemo: Disable cloning when not logged in (#166)
- Loading branch information
Showing
3 changed files
with
14 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<button type="button" | ||
class="ui tiny compact button ui-qtip" | ||
style="margin-left: 2em;" | ||
title="Clone event into your personal category with full management rights" | ||
data-href="{{ url_for('plugin_i18n_demo.clone_event', event) }}" | ||
data-method="POST"> | ||
<i aria-hidden="true" class="icon clone alternate"></i> | ||
Clone | ||
</button> | ||
{% set enabled_message = 'Clone event into your personal category with full management rights' %} | ||
{% set disabled_message = 'You must be logged in to clone events' %} | ||
<span class="ui-qtip" style="margin-left: 2em;" title="{{ disabled_message if disabled else enabled_message }}"> | ||
<button type="button" | ||
class="ui tiny compact button {{ 'disabled' if disabled }}" | ||
data-href="{{ url_for('plugin_i18n_demo.clone_event', event) }}" | ||
data-method="POST"> | ||
<i aria-hidden="true" class="icon clone alternate"></i> | ||
Clone | ||
</button> | ||
</span> |