Skip to content

Commit d93f407

Browse files
marcorothcompwron
authored andcommitted
Address some additional linter warnings
1 parent 1b643cb commit d93f407

7 files changed

Lines changed: 13 additions & 20 deletions

File tree

app/views/all_casa_admins/patch_notes/_patch_note.html.erb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@
55
<label for="patch-note-<%= patch_note.id %>-type">Patch Note Type:</label>
66
<select id="patch-note-<%= patch_note.id %>-type" disabled="true">
77
<% @patch_note_types&.each do |patch_note_type| %>
8-
<% if patch_note_type.id === patch_note.patch_note_type_id %>
9-
<option value="<%= patch_note_type.id %>" selected="selected">
10-
<% else %>
11-
<option value="<%= patch_note_type.id %>">
12-
<% end %>
13-
<%= patch_note_type.name %>
14-
</option>
8+
<option value="<%= patch_note_type.id %>" <% if patch_note_type.id === patch_note.patch_note_type_id %> selected <% end %>>
9+
<%= patch_note_type.name %>
10+
</option>
1511
<% end %>
1612
</select>
1713
</div>

app/views/casa_admins/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
<tbody>
3636
<% @admins.each do |admin| %>
37-
<tr id="admin-<%= admin.id %>" class="">
37+
<tr id="admin-<%= admin.id %>">
3838
<td scope="row" class="min-wdth">
3939
<span class="ml-10 mb-10 mt-10 pb-1"><%= admin.email %></span>
4040
<% unless admin.active? %>
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<!-- Button code -->
22
<% if date.present? %>
3-
<%= tag.div class: "cal-btn", id: id, data: { title: title, start: date[:start], end: date[:end], tooltip: tooltip } do %>
4-
<% end %>
3+
<%= tag.div class: "cal-btn", id: id, data: { title: title, start: date[:start], end: date[:end], tooltip: tooltip } %>
54
<% end %>

app/views/case_contacts/_case_contact.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div>
55
<div class="mt-0">
66
<i class=" <%= "text-primary" %> <%= contact.decorate.medium_icon_classes %>"></i>
7-
<div class="">
7+
<div>
88
<h5 class="pt-0 mb-10 card-title d-flex align-items-center gap-2">
99
<strong class="<%= "text-primary" %>">
1010
<%= "[DELETE] " if policy(contact).restore? && contact.deleted? %>
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
<% if followup %>
2-
<div>
1+
<div>
2+
<% if followup %>
33
<%= button_to resolve_followup_path(followup), method: :patch, class: "main-btn btn-sm success-btn btn-hover", id:"resolve", data: { turbo: false } do %>
44
<i class="bi bi-calendar"></i>Resolve Reminder
55
<% end %>
6-
</div>
7-
<% else %>
8-
<div>
6+
<% else %>
97
<button type="button"
108
class="followup-button main-btn btn-sm primary-btn-outline btn-hover"
119
id="followup-button-<%= contact.id %>"
1210
data-turbo="false">
1311
<i class="lni lni-calendar mr-5"></i>
1412
Make Reminder
1513
</button>
16-
</div>
17-
<% end %>
14+
<% end %>
15+
</div>

app/views/devise/mailer/reset_password_instructions.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<tbody style="box-sizing: border-box;">
5353
<tr style="box-sizing: border-box;">
5454
<td class="cell c1776" style="box-sizing: border-box; width: 70%; vertical-align: middle;text-align:center;" width="70%" valign="middle">
55-
<img style="max-width: 100%;" src="https://user-images.githubusercontent.com/8918762/120879374-7c813a00-c588-11eb-92d7-efa6fdfdfbf0.png" alt="Logo" class="c926" style="box-sizing: border-box; color: rgb(158, 83, 129); font-size: 50px;padding-top:10px;background:#00447c;">
55+
<img src="https://user-images.githubusercontent.com/8918762/120879374-7c813a00-c588-11eb-92d7-efa6fdfdfbf0.png" alt="Logo" class="c926" style="max-width: 100%; box-sizing: border-box; color: rgb(158, 83, 129); font-size: 50px;padding-top:10px;background:#00447c;">
5656
</td>
5757
</tr>
5858
</tbody>

app/views/layouts/_banner.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% if @active_banner %>
22
<div class="bg-secondary-100 text-xl p-5 d-flex" data-controller="dismiss" data-dismiss-target="element" data-dismiss-url-value="<%= dismiss_banner_path(@active_banner) %>">
3-
<div class="">
3+
<div>
44
<%= @active_banner.content %>
55
</div>
66
<div class="ms-auto">

0 commit comments

Comments
 (0)