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

44 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

<%= render :partial => 'channelinfo', :locals => { :zone => "private" } %>
2014-08-05 20:44:39 +02:00
<div class="col-xs-6 col-sm-6" style="padding-left: 42px;">
<h4 style="color: #333;">Channel Stats</h4>
<table>
<tr><td>Created</td><td ><abbr class="timeago channel_time_text" title="<%= @channel.created_at %>" ><%= @channel.created_at %></abbr></td></tr>
<tr><td>Updated</td><td ><abbr class="timeago channel_time_text" title="<%= @channel.updated_at %>" ><%= @channel.updated_at %></abbr></td></tr>
</table>
<span><%= @channel.feeds.count %> Entries</span>
</div>
2014-08-05 20:44:39 +02:00
<div class="CB">
<div class="col-xs-6 col-sm-6">
<div id="private_dialog0" class="column"></div>
</div>
<div class="col-xs-6 col-sm-6">
<div id="private_dialog1" class="column"></div>
</div>
</div>
<script>
2014-08-02 04:10:21 +02:00
// when the document is ready
$(document).on('page:load ready', function() {
// when the devinfo link is clicked
$("#devInfoLink_private").click(function(e) {
var element = $("#devInfo");
openDialogCenter(element);
2014-08-02 04:10:21 +02:00
return false;
});
// when the add window link is clicked
$("#portletAddLink_private").click(function(e) {
$("#addPortlets").load('/channels/<%=@channel.id %>/hidden_windows?visibility_flag=private', function(e) {
var element = $("#addPortlets");
openDialogCenter(element);
2014-08-02 04:10:21 +02:00
});
return false;
});
2014-08-02 04:10:21 +02:00
});
</script>
2014-08-01 21:57:02 +02:00