Fix remaining erblint errors (#8405)

* Fix remaining erblint errors

* Fix last error
This commit is contained in:
Alberto Pérez de Rada Fiol 2020-06-11 20:03:19 +02:00 committed by GitHub
parent 134be94b5c
commit 2ef30f6656
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 8 deletions

View file

@ -78,7 +78,7 @@
</span>
<% else %>
<% number_of_pages = @num_published_articles / @number_of_articles %>
<% range = (number_of_pages < 10 || @page < 4) ? 1..[number_of_pages, 9].min : [@page - 3, 1].max..[@page + 5, number_of_pages].min %>
<% range = number_of_pages < 10 || @page < 4 ? 1..[number_of_pages, 9].min : [@page - 3, 1].max..[@page + 5, number_of_pages].min %>
<% if number_of_pages > 1 %>
<hr />
<div class="olderposts-header">Older #<%= @tag %> posts</div>

View file

@ -49,7 +49,7 @@
<% end %>
<% if NotificationSubscription.where(user_id: current_user, notifiable_type: "Article", notifiable_id: @comment.commentable_id, config: "all_comments").any? %>
<br/><br/>
<br /><br />
<p><em>You are still subscribed to all comments in the broader thread, which will mean you will still receive notifications for replies to this comment.</em></p>
<%= form_for(@notification_subscription, url: "/notification_subscriptions/Article/#{@comment.commentable_id}", method: "post", html: { class: "mute-form" }) do |f| %>
<input type="hidden" name="config" value="not_subscribed">

View file

@ -68,8 +68,13 @@
<%= form_with url: internal_buffer_updates_path, html: { data: { action: "submit->buffer#highlightElement" } } do %>
<input type="hidden" name="social_channel" value="listings_twitter" />
<input type="hidden" name="listing_id" value="<%= listing.id %>" />
<textarea class="form-control" wrap="hard" name="tweet" maxlength="255" data-target="buffer.bodyText">📋 New <%= community_name %> Listing!&#013&#013Category: <%= listing.category %>&#013&#013<%= listing.title %>&#013&#013<% if listing.user.twitter_username? %>Posted by @<%= listing.user.twitter_username %><% end %></textarea>
<button class="btn btn-primary mt-2" data-action=>🐦 Tweet 🐦</button>
<textarea class="form-control" wrap="hard" name="tweet" maxlength="255" data-target="buffer.bodyText">
📋 New <%= community_name %> Listing!&#013&#013Category: <%= listing.category %>&#013&#013<%= listing.title %>&#013&#013
<% if listing.user.twitter_username? %>
Posted by @<%= listing.user.twitter_username %>
<% end %>
</textarea>
<button class="btn btn-primary mt-2">🐦 Tweet 🐦</button>
<% end %>
</div>
</td>

View file

@ -12,7 +12,8 @@
<h1>Partner With <img src="<%= asset_path "rainbowdev.svg" %>" /> </h1>
<h3>🚀 Reach</h3>
<p>
<%= community_name %> serves millions of unique visitors per month. This highly-targeted <%= SiteConfig.community_member_label %> audience is comprised of registered members (<%= number_with_delimiter(User.estimated_count) %>) and visitors from the open web — many of whom visit <%= community_name %> as part of their daily routine. You may be interested in the <a href="https://www.similarweb.com/website/dev.to">public analytics available on SimilarWeb</a>.
<%= community_name %> serves millions of unique visitors per month. This highly-targeted <%= SiteConfig.community_member_label %> audience is comprised of registered members (<%= number_with_delimiter(User.estimated_count) %>) and visitors from the open web
— many of whom visit <%= community_name %> as part of their daily routine. You may be interested in the <a href="https://www.similarweb.com/website/dev.to">public analytics available on SimilarWeb</a>.
</p>
<h3>❤️ Community</h3>
<p>

View file

@ -1,3 +1,3 @@
<% if user.payment_pointer.present? %>
<div id="author-payment-pointer" data-payment-pointer="<%= user.payment_pointer %>" ></div>
<div id="author-payment-pointer" data-payment-pointer="<%= user.payment_pointer %>"></div>
<% end %>

View file

@ -3,7 +3,7 @@
.ltag__tag__id__<%= tag.id %> .follow-action-button{
background-color: <%= tag.bg_color_hex %> !important;
color: <%= tag.text_color_hex %> !important;
border-color: <%= tag.bg_color_hex.to_s.casecmp('#ffffff').zero? ? tag.text_color_hex : tag.bg_color_hex %> !important;
border-color: <%= tag.bg_color_hex.to_s.casecmp("#ffffff").zero? ? tag.text_color_hex : tag.bg_color_hex %> !important;
}
</style>
<div class="ltag__tag__content">

View file

@ -20,7 +20,6 @@
/* flex-direction:row; */
}
.individual-video {
overflow: hidden;
position: relative;