-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes it more clear that these icons are status icons and not buttons. Also we only show them if a page has not the default state (online and not restricted) in order to unclutter the screen from obvious information.
- Loading branch information
Showing
9 changed files
with
80 additions
and
40 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 |
---|---|---|
@@ -1,18 +1,14 @@ | ||
<span class="page_status"> | ||
<sl-tooltip content="<%= page.status_title(:public) %>" placement="bottom" class="like-hint-tooltip"> | ||
<% if page.public? %> | ||
<%= render_icon(:cloud, size: "1x", class: "disabled") %> | ||
<% else %> | ||
<%= render_icon("cloud-off", size: "1x") %> | ||
<% end %> | ||
</sl-tooltip> | ||
<% if page.public? %> | ||
<%= render_icon(:cloud, size: "1x", class: "disabled") %> | ||
<% else %> | ||
<%= render_icon("cloud-off", size: "1x") %> | ||
<% end %> | ||
</span> | ||
<span class="page_status"> | ||
<sl-tooltip content="<%= page.status_title(:restricted) %>" placement="bottom" class="like-hint-tooltip"> | ||
<% if page.restricted? %> | ||
<%= render_icon(:lock, size: "1x") %> | ||
<% else %> | ||
<%= render_icon("lock-unlock", size: "1x", class: "disabled") %> | ||
<% end %> | ||
</sl-tooltip> | ||
<% if page.restricted? %> | ||
<%= render_icon(:lock, size: "1x") %> | ||
<% else %> | ||
<%= render_icon("lock-unlock", size: "1x", class: "disabled") %> | ||
<% end %> | ||
</span> |
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