Skip to content

Commit

Permalink
hello rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
forceofcalm committed Jan 10, 2025
1 parent 223a460 commit 353bf6b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/views/bookmarks/_bookmarkable_blurb.html.erb
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">

Expand All @@ -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

View workflow job for this annotation

GitHub Actions / ERB Lint runner

[] reported by reviewdog 🐶 I18n/DeprecatedHelper: Prefer Rails built-in `t` helper over `ts` and move the text into the yml file. `ts` is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards Raw Output: app/views/bookmarks/_bookmarkable_blurb.html.erb:20:22: I18n/DeprecatedHelper: Prefer Rails built-in `t` helper over `ts` and move the text into the yml file. `ts` is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards
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

View workflow job for this annotation

GitHub Actions / ERB Lint runner

[] reported by reviewdog 🐶 I18n/DeprecatedHelper: Prefer Rails built-in `t` helper over `ts` and move the text into the yml file. `ts` is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards Raw Output: app/views/bookmarks/_bookmarkable_blurb.html.erb:25:22: I18n/DeprecatedHelper: Prefer Rails built-in `t` helper over `ts` and move the text into the yml file. `ts` is not actually translatable. For more information, refer to https://github.com/otwcode/otwarchive/wiki/Internationalization-(i18n)-Standards
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>
Expand All @@ -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">
Expand All @@ -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>

0 comments on commit 353bf6b

Please sign in to comment.