Added Rubocop to project; corrected style errors

This commit is contained in:
2023-03-18 11:35:52 -04:00
parent f27154b705
commit 9c91bcb6cb
16 changed files with 151 additions and 93 deletions

View File

@ -20,7 +20,7 @@
<p><span><%= channel.directory_path %></span></p>
</div>
<div class="channel-open">
<p>Open projects: <span><%= channel.openProjects().length %></span></p>
<p>Open projects: <span><%= channel.open_projects().length %></span></p>
</div>
<div class="channel-videos">
<p>Total videos: <span><%= channel.videos.length %></span></p>

View File

@ -68,7 +68,7 @@
<% channels.each do |c| %>
<tr>
<td><a href="/channel/<%= c.id %>"><%= c.name %></a></td>
<td><%= nullable(c.openProjects().length) %></td>
<td><%= nullable(c.open_projects().length) %></td>
<td><%= nullable(c.videos.length) %></td>
<td><%= date_format(c.updated_at) %></td>
</tr>

View File

@ -4,6 +4,6 @@
<hr>
<%= video.parseScript() %>
<%= video.parse_script() %>
</div>
</div>

View File

@ -41,7 +41,7 @@
<hr>
<div class="script">
<%= video.parseScript() %>
<%= video.parse_script() %>
</div>
</div>
</div>