update documentation
This commit is contained in:
@ -22,7 +22,7 @@
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
<div class="helplink">(<a target="_blank" href="http://community.thingspeak.com/documentation/api/#send_data"><%= t(:help_options) %></a>)</div>
|
||||
<div class="helplink">(<a target="_blank" href="/docs/channels#update"><%= t(:help_options) %></a>)</div>
|
||||
<h2><%= t(:help_channel_update) %></h2>
|
||||
<%= t(:help_channel_post) %>
|
||||
<div class="code"><%= "#{@api_domain}update" %></div>
|
||||
@ -30,7 +30,7 @@
|
||||
<div class="code"><%= "#{@api_domain}update?key=#{@key}&field1=0" %></div>
|
||||
<br /><br />
|
||||
|
||||
<div class="helplink">(<a target="_blank" href="http://community.thingspeak.com/documentation/api/#view_data"><%= t(:help_options) %></a>)</div>
|
||||
<div class="helplink">(<a target="_blank" href="/docs/channels#get_feed"><%= t(:help_options) %></a>)</div>
|
||||
<h2><%= t(:help_channel_feed) %></h2>
|
||||
<%= t(:help_channel_view) %>
|
||||
<br />
|
||||
@ -40,7 +40,7 @@
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<div class="helplink">(<a target="_blank" href="http://community.thingspeak.com/documentation/#importer"><%= t(:help_options) %></a>)</div>
|
||||
<div class="helplink">(<a target="_blank" href="/docs/channels#importer"><%= t(:help_options) %></a>)</div>
|
||||
<h2><%= t(:help) %></h2>
|
||||
<%= t(:help_channel_import) %>
|
||||
</li>
|
||||
|
@ -66,7 +66,7 @@
|
||||
<div class="col-pad">
|
||||
|
||||
<%= t(:help_channel) %>
|
||||
(<a href="http://community.thingspeak.com/documentation/api/"><%= t(:help_options) %></a>)
|
||||
(<a href="/docs/channels"><%= t(:help_options) %></a>)
|
||||
<ul>
|
||||
<li><a href="http://community.thingspeak.com/tutorials/arduino/using-an-arduino-ethernet-shield-to-update-a-thingspeak-channel/">Arduino Tutorial</a></li>
|
||||
<li><a href="http://community.thingspeak.com/tutorials/netduino/create-your-own-web-of-things-using-the-netduino-plus-and-thingspeak/">Netduino Plus Tutorial</a></li>
|
||||
|
@ -1,11 +1,55 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12">
|
||||
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<h4 class="breadcrumb"><%= flash[:notice] %></h4>
|
||||
<%= render :partial => 'list' %>
|
||||
<br />
|
||||
<%= will_paginate @channels %>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-sm-3">
|
||||
<h4 class="breadcrumb"><%= t(:search).capitalize %></h4>
|
||||
|
||||
<div class="col-pad">
|
||||
<form role="form">
|
||||
<div class="form-group">
|
||||
<label for="tag_input"><%= t(:search_by_tag) %></label>
|
||||
<input type="text" class="form-control" id="tag_input" placeholder="<%= t(:search_input_tag) %>">
|
||||
</div>
|
||||
<button type="submit" id="search_tag" class="btn btn-primary btn-sm"><%= t(:submit) %></button>
|
||||
</form>
|
||||
|
||||
<br><br>
|
||||
|
||||
<form role="form">
|
||||
<div class="form-group">
|
||||
<label for="username_input"><%= t(:search_by_username) %></label>
|
||||
<input type="text" class="form-control" id="username_input" placeholder="<%= t(:search_input_username) %>">
|
||||
</div>
|
||||
<button type="submit" id="search_username" class="btn btn-primary btn-sm"><%= t(:submit) %></button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// when the document is ready
|
||||
$(document).ready(function() {
|
||||
|
||||
// when search tag is clicked
|
||||
$('#search_tag').on('click', function() {
|
||||
window.location.href = '<%= @domain %>channels/public?tag=' + encodeURIComponent($('#tag_input').val());
|
||||
return false;
|
||||
});
|
||||
|
||||
// when search username is clicked
|
||||
$('#search_username').on('click', function() {
|
||||
window.location.href = '<%= @domain %>channels/public?username=' + encodeURIComponent($('#username_input').val());
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
@ -1,17 +1,15 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="col-xs-12 col-sm-12">
|
||||
|
||||
<h4 class="breadcrumb"><%= t(:watched_channels) %></h4>
|
||||
|
||||
<div class="col-pad">
|
||||
<% if @channels.empty? %>
|
||||
<%= t(:watched_empty) %>
|
||||
<br /><br />
|
||||
<%= link_to t(:watched_find), public_channels_path %>
|
||||
<% else %>
|
||||
<%= render :partial => 'list' %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% if @channels.empty? %>
|
||||
<%= t(:watched_empty) %>
|
||||
<br /><br />
|
||||
<%= link_to t(:watched_find), public_channels_path %>
|
||||
<% else %>
|
||||
<%= render :partial => 'list' %>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user