thingspeak/app/views/channels/_channelinfo.html.erb

33 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-08-05 20:44:39 +02:00
<div class="col-xs-6 col-sm-6">
<h3><%= @channel.name %></h3>
2014-05-23 15:48:47 +02:00
<% if @channel.user.present? %>
2014-08-05 20:44:39 +02:00
<div>by <%= link_to @channel.user.login, user_profile_path(@channel.user.login) %></div><br>
2014-05-23 15:48:47 +02:00
<% end %>
2014-08-05 20:44:39 +02:00
<div><%= @channel.description %></div><br>
2014-08-06 00:23:50 +02:00
<% if @channel.tags.present? %>
<div>
<b>Tags:</b>
<% @channel.tags.each do |tag| %>
<a href="/channels/public?tag=<%=u tag.name %>"><%= tag.name %></a><% unless tag == @channel.tags.last %>, <% end %>
<% end %>
</div><br>
<% end %>
2014-08-05 20:44:39 +02:00
</div>
<div id="channellinks">
<div class="FR developerlink">
<a id="devInfoLink_<%= zone %>" href="#" class="topLink" ><%= t(:developer_info) %></a>
</div>
<% unless @channel.url.blank? %>
<div class="FR developerlink">
<%= link_to t(:for_more_information), @channel.url, :target => '_blank', :class => 'topLink' %>
</div>
<% end %>
<% if @mychannel %>
<div class="FR developerlink" >
<a href="#" id="portletAddLink_<%= zone %>" class="topLink " ><%= t(:add_portlets) %></a>
</div>
<% end %>
</div> <!-- end channellinks -->