Fix remaining erblint errors (#8405)
* Fix remaining erblint errors * Fix last error
This commit is contained in:
parent
134be94b5c
commit
2ef30f6656
7 changed files with 13 additions and 8 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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!

Category: <%= listing.category %>

<%= listing.title %>

<% 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!

Category: <%= listing.category %>

<%= listing.title %>

|
||||
<% 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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 %>
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
/* flex-direction:row; */
|
||||
}
|
||||
|
||||
|
||||
.individual-video {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue