-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1595 from kbase/develop
Merge for deployment of version 4.1.0
- Loading branch information
Showing
12 changed files
with
280 additions
and
130 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
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
61 changes: 51 additions & 10 deletions
61
kbase-extension/static/kbase/templates/static_narrative.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 |
---|---|---|
@@ -1,20 +1,61 @@ | ||
<div style="display: flex; border-bottom: 1px solid #eee; margin-bottom: 0.5rem; padding-bottom: 0.5rem;"> | ||
{{#if url }} | ||
<div> | ||
<div><b>A static version of this Narrative exists.</b></div> | ||
<div>Based on version {{ version }}</div> | ||
<div>Originally saved {{{ narr_saved }}}</div> | ||
<div>And made static {{{ static_saved }}}</div> | ||
</div> | ||
<div style="margin-left: auto"> | ||
<a target="_blank" title="Go to existing static Narrative" href="{{ url }}"> | ||
<i class="fa fa-external-link fa-2x"></i> | ||
</a> | ||
<div> | ||
<a href="{{ url }}" target="_blank"> | ||
<b>Existing static Narrative</b> | ||
<i class="fa fa-external-link"></i> | ||
</a> | ||
</div> | ||
<div> | ||
<ul> | ||
<li>Made from version {{ version }}</li> | ||
<li>Narrative was saved {{{ narr_saved }}}</li> | ||
</ul> | ||
</div> | ||
</div> | ||
{{else}} | ||
<div> | ||
<div><b>No static version exists for this Narrative yet!</b></div> | ||
<div>You can create one by clicking below.</div> | ||
</div> | ||
{{/if}} | ||
<div style="margin-left: auto"> | ||
<a tabindex="0" | ||
role="button" id="kb-sn-help" data-placement="bottom" data-trigger="focus" | ||
data-toggle="popover" title="Static Narrative" | ||
data-content="A static Narrative is a publicly viewable, non-interactive version of your Narrative. It has all the same content, and you can view the results of Apps, but cannot run any more."> | ||
<i class="fa fa-question-circle fa-2x"></i> | ||
</a> | ||
</div> | ||
</div> | ||
{{#if canMakeStatic}} | ||
<div> | ||
<div style="margin-bottom: 2rem"> | ||
<b>This is version {{currentVersion}} of this Narrative and was saved {{{currentVersionSaved}}}</b> | ||
</div> | ||
{{#if isCurrentVersion}} | ||
<div>No recent changes have been made to the Narrative, but you can still make a new Static Narrative.</div> | ||
{{/if}} | ||
<div> | ||
<button class="btn btn-sm btn-primary">Create static narrative</button> | ||
<span data-element="saving-spinner" class="hidden fa fa-spinner fa-pulse fa-ex fa-fw" style="margin-left: 0.5rem"></span> | ||
</div> | ||
</div> | ||
{{else}} | ||
<div class="alert alert-danger"> | ||
{{#unless isAdmin}} | ||
<div> | ||
<strong>Not an admin</strong> | ||
<br> | ||
You must have sharing rights to create a static Narrative. | ||
</div> | ||
{{/unless}} | ||
{{#unless isPublic}} | ||
<div {{#unless isAdmin}}style="padding-top: 0.5rem"{{/unless}}> | ||
<strong>Not public</strong> | ||
<br> | ||
Narratives must be publicly viewable to be made static. | ||
</div> | ||
{{/unless}} | ||
</div> | ||
{{/if}} |
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
Oops, something went wrong.