Skip to content

Commit

Permalink
AO3-6709 fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nish-shai-scacap committed Jul 22, 2024
1 parent ac2209d commit ec94a83
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions app/views/users/_sidebar.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id="dashboard" class="region <%= @user == current_user ? "own" : "" %>" role="navigation region">
<h4 class="landmark heading"><%= t(".landmark.choices")%></h4>
<h4 class="landmark heading"><%= t(".landmark.choices") %></h4>
<ul class="navigation actions">
<li><%= span_if_current t(".choices.dashboard"), @user %></li>
<li><%= span_if_current t(".choices.profile"), user_profile_path(@user) %></li>
Expand All @@ -8,7 +8,7 @@
<a href="#" title="<%= t(".choices.pseud_switcher") %>"><%= t(".choices.pseuds") %></a>
<ul class="expandable secondary">
<%= pseud_selector(pseuds_for_sidebar(@user, @pseud)) %>
<li><%= span_if_current t(".choices.all_pseuds", :pseud_number => @user.pseuds.count), user_pseuds_path(@user) %></li>
<li><%= span_if_current t(".choices.all_pseuds", pseud_number: @user.pseuds.count), user_pseuds_path(@user) %></li>
</ul>
</li>
<% end %>
Expand All @@ -20,25 +20,25 @@
</ul>


<h4 class="landmark heading"><%= t(".landmark.pitch")%></h4>
<h4 class="landmark heading"><%= t(".landmark.pitch") %></h4>
<ul class="navigation actions">
<li><%= works_link(@user, @pseud) %></li>
<% if @user == current_user || logged_in_as_admin? %>
<li><%= span_if_current t(".pitch.drafts", :drafts_number => @user.unposted_works.size), drafts_user_works_path(@user) %></li>
<li><%= span_if_current t(".pitch.drafts", drafts_number: @user.unposted_works.size), drafts_user_works_path(@user) %></li>
<% end %>
<li><%= series_link(@user, @pseud) %></li>

<% unless @user == User.orphan_account %>
<li><%= bookmarks_link(@user, @pseud) %></li>
<% end %>

<li><%= span_if_current t(".pitch.collections", :coll_number => @user.maintained_collections.count), user_collections_path(@user) %></li>
<li><%= span_if_current t(".pitch.collections", coll_number: @user.maintained_collections.count), user_collections_path(@user) %></li>
</ul>

<% if @user == current_user || policy(:dashboard).can_view_inbox_link? %>
<h4 class="landmark heading"><%= t(".landmark.catch")%></h4>
<h4 class="landmark heading"><%= t(".landmark.catch") %></h4>
<ul class="navigation actions">
<li><%= span_if_current t(".catch.inbox", :inbox_number => @user.unread_inbox_comments_count.to_s), user_inbox_path(@user) %></li>
<li><%= span_if_current t(".catch.inbox", inbox_number: @user.unread_inbox_comments_count.to_s), user_inbox_path(@user) %></li>
<% if @user == current_user %>
<li><%= span_if_current t(".catch.statistics"), user_stats_path(@user) %></li>
<% if @user.preference.try(:history_enabled?) %>
Expand All @@ -49,16 +49,16 @@
</ul>
<% end %>

<h4 class="landmark heading"><%= t(".landmark.switch")%></h4>
<h4 class="landmark heading"><%= t(".landmark.switch") %></h4>
<ul class="navigation actions">
<% if @user == current_user %>
<% if @user.preference.allow_cocreator %>
<li><%= span_if_current t(".switch.co_creator_requests", count: Creatorship.unapproved.for_user(@user).count), user_creatorships_path(@user) %></li>
<% end %>
<li><%= span_if_current t(".switch.sign_ups", :signup_number =>@user.challenge_signups.count), user_signups_path(@user) %></li>
<li><%= span_if_current t(".switch.assignments", :assignment_number => (@user.offer_assignments.undefaulted.count + @user.pinch_hit_assignments.undefaulted.count)), user_assignments_path(@user) %></li>
<li><%= span_if_current t(".switch.claims", :claim_number => (@user.request_claims.unposted.count)), user_claims_path(@user) %></li>
<li><%= span_if_current t(".switch.related_works", :related_works_number => (@user.related_works.posted.count + @user.parent_work_relationships.count)), user_related_works_path(@user) %></li>
<li><%= span_if_current t(".switch.sign_ups", signup_number: @user.challenge_signups.count), user_signups_path(@user) %></li>
<li><%= span_if_current t(".switch.assignments", assignment_number: (@user.offer_assignments.undefaulted.count + @user.pinch_hit_assignments.undefaulted.count)), user_assignments_path(@user) %></li>
<li><%= span_if_current t(".switch.claims", claim_number: @user.request_claims.unposted.count), user_claims_path(@user) %></li>
<li><%= span_if_current t(".switch.related_works", related_works_number: (@user.related_works.posted.count + @user.parent_work_relationships.count)), user_related_works_path(@user) %></li>
<% end %>
<li><%= gifts_link(@user) %></li>
</ul>
Expand Down

0 comments on commit ec94a83

Please sign in to comment.