-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1523829
commit da19418
Showing
4 changed files
with
63 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,49 @@ | ||
<h2 align="center"> Stats in Json </h2> | ||
<hr> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<%= form_tag request.url, method: :get do %> | ||
<h5>Choose dates to download raw data of content created within that period</h5> | ||
<br> | ||
<input data-provide="datepicker" data-date="<%= Date.today.strftime("%d-%m-%Y") %>" data-date-format="dd-mm-yyyy" data-date-max-view-mode="years" data-date-min-view-mode="months" tabindex="1" class="form-control input-lg" type="text" name="start" placeholder=" Select start date"> | ||
<br> | ||
<input data-provide="datepicker" data-date="<%= Date.today.strftime("%d-%m-%Y") %>" data-date-format="dd-mm-yyyy" data-date-max-view-mode="years" data-date-min-view-mode="months" tabindex="1" class="form-control input-lg" type="text" name="end" placeholder=" Select end date"> | ||
<br> | ||
<%= submit_tag "Go", class: 'btn btn-secondary' %> | ||
<% end %> | ||
<br> | ||
</div> | ||
</div> | ||
<br> | ||
<h5>Stats from From <%= params[:start] %> to <%= params[:end] %></h5> | ||
<br> | ||
<div class="btn-group" align="center" role="group" aria-label="Basic example"> | ||
<a href= "/stats"> | ||
<button type="button" class="btn btn-primary" title=" Back to Stats"> | ||
<i class="fa fa-arrow-left fa-2x" style="color:#fff;"> </i> | ||
</button> | ||
</a> | ||
<a href= "/stats/notes"> | ||
<button type="button" class="btn-lg btn-primary" title="Download notes"> | ||
Download notes as Json | ||
</button> | ||
</a> | ||
<a href= "/stats/notes"> | ||
<%= link_to stats_path do %> | ||
<button type="button" class="btn btn-secondary" title=" Back to Stats"> | ||
<i class="fa fa-arrow-left fa-2x" style="color:#0088cc;"> </i> | ||
</button> | ||
<button type="button" class="btn-lg btn-primary" title="Download wikis"> | ||
Download wikis as Json | ||
<% end %> | ||
|
||
<%= link_to stats_notes_path(start: params[:start], end: params[:end]) do %> | ||
<button type="button" class="btn-lg btn-secondary" title="Download notes"> | ||
Download notes | ||
</button> | ||
</a> | ||
<a href= "/stats/comments"> | ||
<% end %> | ||
|
||
<%= link_to stats_wikis_path(start: params[:start], end: params[:end]) do %> | ||
<button type="button" class="btn-lg btn-secondary" title="Download wikis"> | ||
Download wikis | ||
</button> | ||
<button type="button" class="btn-lg btn-primary" title="Download wikis"> | ||
Download comments as Json | ||
<% end %> | ||
|
||
<%= link_to stats_comments_path(start: params[:start], end: params[:end]) do %> | ||
<button type="button" class="btn-lg btn-secondary" title="Download wikis"> | ||
Download comments | ||
</button> | ||
</a> | ||
<% end %> | ||
</div> | ||
<br> <br> | ||
<% @hash.each do |k,v| %> | ||
<p><b><%= k %> </b></p> | ||
<p><%= v %> </p> | ||
<p><b><%= k %> </b></p> | ||
<p><%= v %> </p> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters