-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: upstream link and alert styling
- Loading branch information
1 parent
a7435d2
commit 9547c8c
Showing
3 changed files
with
55 additions
and
21 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,20 +1,18 @@ | ||
<div class="page-banner"> | ||
<div class="alert alert-warning has-warning" style="display: flex;align-items: center;" role="alert"> | ||
<span class="feedback-symbol fa fa-warning" style="color: rgb(237, 189, 60)" aria-hidden="true"></span><span class="sr"><%- gettext("Warning") %></span> | ||
<div class="message-content"> | ||
<strong><%- gettext("You are editing content from a Library.") %></strong> | ||
<p> | ||
<%- gettext("Edits made here will only be reflected in this course. These edits may be overridden later if updates are accepted.") %> | ||
</p> | ||
</div> | ||
<a | ||
href="<%- upstreamLink %>" | ||
target="_blank" | ||
class="btn-primary btn cta-primary view-button" | ||
style="text-wrap: nowrap; background-color: black; margin-left: auto" | ||
> | ||
<%- gettext('View in Library') %> | ||
<span class="fa fa-external-link" aria-hidden="true" style="margin-left: 10px"></span> | ||
</a> | ||
<div class="modal-alert warning" role="alert"> | ||
<span class="fa fa-lg fa-warning" aria-hidden="true"/><span class="sr"><%- gettext("Warning") %></span> | ||
<div class="message-content"> | ||
<strong><%- gettext("You are editing content from a Library.") %></strong> | ||
<p> | ||
<%- gettext("Edits made here will only be reflected in this course. These edits may be overridden later if updates are accepted.") %> | ||
</p> | ||
</div> | ||
<a | ||
href="<%- upstreamLink %>" | ||
target="_blank" | ||
class="btn action-btn" | ||
> | ||
<%- gettext('View in Library') %> | ||
<span class="fa fa-external-link" aria-hidden="true" /> | ||
</a> | ||
</div> | ||
|