-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finalize UI migration away from the scene-card component
- Loading branch information
Showing
17 changed files
with
239 additions
and
651 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<div class="scene-card"> | ||
<a class="card-image" href="/ui/scenes/{{encodeURIComponent name}}" title="{{i18n "labels.view"}}"> | ||
{{#if thumb }} | ||
<img src="{{thumb}}" /> | ||
{{else}} | ||
<img style="background:radial-gradient(circle, #103040 0, #0b0b0b 100%);" src="/dist/images/defaultSprite.svg" /> | ||
{{/if}} | ||
</a> | ||
<div class="scene-card-inner"> | ||
<div class="infos"> | ||
<a href="/ui/scenes/{{encodeURIComponent name}}"><h4 class="card-title">{{name}}</h4></a> | ||
<span class="card-time">{{#if mtime}}{{dateString mtime}}{{/if}}</span> | ||
</div> | ||
<div class="tools"> | ||
{{!if a scene is shown, the user must have read access}} | ||
<a class="tool-link" href="/ui/scenes/{{encodeURIComponent name}}/view" title="{{i18n "leads.showScene"}}"> | ||
<ui-icon name="eye"></ui-icon> | ||
<span class="tool-text">{{i18n "labels.view"}}</span> | ||
</a> | ||
{{#unless (test access.user "==" "read")}} | ||
<a class="tool-link" href="/ui/scenes/{{encodeURIComponent name}}/edit" title="{{i18n "leads.editScene"}}"> | ||
<ui-icon name="edit"></ui-icon> | ||
<span class="tool-text">{{i18n "labels.edit"}}</span> | ||
</a> | ||
{{/unless}} | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
<h2>{{tag}}</h2> | ||
<div class="section"> | ||
{{#each scenes}} | ||
<scene-card | ||
cardStyle="list" | ||
name="{{name}}" | ||
thumb="{{thumb}}" | ||
time="{{mtime}}" | ||
access="{{#if access}}{{#if @root.user.isAdministrator}}admin{{else}}{{access.user}}{{/if}}{{else}}none{{/if}}" | ||
></scene-card> | ||
{{> sceneCard }} | ||
{{/each}} | ||
</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
Oops, something went wrong.