-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d982a64
commit 5175489
Showing
6 changed files
with
190 additions
and
77 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* This file is manually maintained, it is not generated from SCSS sources */ | ||
|
||
.task { | ||
padding-top: 10px; | ||
} | ||
|
||
.task__panel { | ||
padding: 10px 15px 15px 15px; | ||
} | ||
|
||
.task__selector { | ||
display: inline-block; | ||
height: 42px; | ||
margin: 0; | ||
visibility: hidden; | ||
} | ||
|
||
.task__selector:checked + .task__label .task__label-inner, | ||
.task__selector:hover + .task__label .task__label-inner { | ||
border-bottom-color: #43536d; | ||
} | ||
|
||
.task__label { | ||
display: inline-block; | ||
transform: translateY(-15px); | ||
} | ||
|
||
.task__label-inner { | ||
border-bottom: 2px solid transparent; | ||
padding-bottom: 15px; | ||
transition: border-bottom-color 0.2s; | ||
} | ||
|
||
.task__label:first-child { | ||
margin-left: 0; | ||
} | ||
|
||
.task__panel .task__item { | ||
display: none; | ||
} | ||
|
||
.task__selector--immediate:checked ~ .task__panel .task__item--immediate, | ||
.task__selector--universal:checked ~ .task__panel .task__item--universal, | ||
.task__selector--queue-only:checked ~ .task__panel .task__item--queue-only, | ||
.task__selector--all:checked ~ .task__panel .task__item { | ||
display: inline-block; | ||
} |
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
50 changes: 50 additions & 0 deletions
50
templates/Symbiote/QueuedJobs/Controllers/QueuedTaskRunner.ss
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,50 @@ | ||
$Header.RAW | ||
$Info.RAW | ||
|
||
<div class="task"> | ||
<input type="radio" id="tab-all-tasks" class="task__selector task__selector--all" name="task__selector" checked="checked" /> | ||
<label class="task__label task__label--all" for="tab-all-tasks"> | ||
<span class="task__label-inner">All tasks</span> | ||
</label> | ||
|
||
<input type="radio" id="tab-universal-tasks" class="task__selector task__selector--universal" name="task__selector" /> | ||
<label class="task__label task__label--universal" for="tab-universal-tasks"> | ||
<span class="task__label-inner">Queueable task</span> | ||
</label> | ||
|
||
<input type="radio" id="tab-immediate-tasks" class="task__selector task__selector--immediate" name="task__selector" /> | ||
<label class="task__label task__label--immediate" for="tab-immediate-tasks"> | ||
<span class="task__label-inner">Non-queueable tasks</span> | ||
</label> | ||
|
||
<input type="radio" id="tab-queue-only-tasks" class="task__selector task__selector--queue-only" name="task__selector" /> | ||
<label class="task__label task__label--queue-only" for="tab-queue-only-tasks"> | ||
<span class="task__label-inner">Queueable only tasks</span> | ||
</label> | ||
|
||
<div class="task__panel"> | ||
<% if $Tasks.Count > 0 %> | ||
<div class="task__list"> | ||
<% loop $Tasks %> | ||
<div class="task__item task__item--{$Type}"> | ||
<div> | ||
<h3 class="task__title">$Title</h3> | ||
<div class="task__description">$Description</div> | ||
</div> | ||
<div> | ||
<% if $TaskLink %> | ||
<a href="{$TaskLink.ATT}" class="task__button">Run task</a> | ||
<% end_if %> | ||
|
||
<% if $QueueLink %> | ||
<a href="{$QueueLink.ATT}" class="task__button">Queue job</a> | ||
<% end_if %> | ||
</div> | ||
</div> | ||
<% end_loop %> | ||
</div> | ||
<% end_if %> | ||
</div> | ||
</div> | ||
|
||
$Footer.RAW |