Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (21 sloc) 812 Bytes
<div class="main_div">
<p class="small_heading"> Follow related tags: </p>
<%= form_with remote: true, url: '/subscribe/multiple/tag' do |f| %>
<% tags.each do |tag| %>
<div>
<input type="checkbox" id="<%= tag.id %>" name="tagnames[]" value="<%= tag.name %>" <% if current_user.following(tag.name) %> checked <% end %> ><span class="<% if tag.name.include?(':') %> label label-primary <% else %> label label-default <% end %>" style="margin-left: 3px; margin-right: 10px; display: inline-block;"> <%= tag.name %></span>
</div>
<% end %>
<%= f.submit 'Subscribe', class: "btn btn-primary btn-sm", style: 'margin-top: 10px;' %>
<% end %>
</div>
<style>
.main_div{
margin: 10px;
margin-right: 50px;
}
.small_heading{
font-style: italic;
color: #004d80;
}
</style>
You can’t perform that action at this time.