-
Notifications
You must be signed in to change notification settings - Fork 517
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
223a460
commit 353bf6b
Showing
1 changed file
with
11 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<% # expects "bookmarkable" (a BookmarkableDecorator object) %> | ||
<% # Unwrap the bookmarkable to avoid type mis-identification. %> | ||
<%# expects "bookmarkable" (a BookmarkableDecorator object) %> | ||
<%# Unwrap the bookmarkable to avoid type mis-identification. %> | ||
<% unwrapped = bookmarkable.__getobj__ %> | ||
<li id="bookmark_<%= bookmarkable.id %>" class="<%= css_classes_for_bookmarkable_blurb(unwrapped) %>" role="article"> | ||
|
||
|
@@ -18,14 +18,14 @@ | |
<li> | ||
<% if current_user_bookmark ||= bookmark_if_exists(unwrapped) %> | ||
<%= link_to ts("Saved"), | ||
Check failure on line 20 in app/views/bookmarks/_bookmarkable_blurb.html.erb GitHub Actions / ERB Lint runner
|
||
edit_bookmark_path(current_user_bookmark), | ||
id: "bookmark_form_trigger_for_#{bookmarkable.id}", | ||
remote: true %> | ||
edit_bookmark_path(current_user_bookmark), | ||
id: "bookmark_form_trigger_for_#{bookmarkable.id}", | ||
remote: true %> | ||
<% else %> | ||
<%= link_to ts("Save"), | ||
Check failure on line 25 in app/views/bookmarks/_bookmarkable_blurb.html.erb GitHub Actions / ERB Lint runner
|
||
new_polymorphic_path([bookmarkable, Bookmark]), | ||
id: "bookmark_form_trigger_for_#{bookmarkable.id}", | ||
remote: true %> | ||
new_polymorphic_path([bookmarkable, Bookmark]), | ||
id: "bookmark_form_trigger_for_#{bookmarkable.id}", | ||
remote: true %> | ||
<% end %> | ||
</li> | ||
</ul> | ||
|
@@ -35,7 +35,7 @@ | |
<%= render "admin/admin_options", item: bookmarkable %> | ||
<% end %> | ||
|
||
<% # bookmark form loaded here if requested %> | ||
<%# bookmark form loaded here if requested %> | ||
<div class="new dynamic" id="bookmark_form_placement_for_<%= bookmarkable.id %>"></div> | ||
|
||
<div class="recent module group"> | ||
|
@@ -49,8 +49,8 @@ | |
<ul class="actions" role="navigation"> | ||
<li id="recent_link_<%= bookmarkable.id %>" class="showme"> | ||
<%= link_to ts("All Bookmarks"), | ||
polymorphic_path([bookmarkable, Bookmark]), | ||
class: "actions" %> | ||
polymorphic_path([bookmarkable, Bookmark]), | ||
class: "actions" %> | ||
</li> | ||
</ul> | ||
</li> |