started implementing statistics page

This commit is contained in:
Bastian Greshake
2016-02-16 16:52:58 +01:00
parent 9fa2b82cb4
commit 9d458edcd4
3 changed files with 14 additions and 6 deletions

View File

@@ -13,12 +13,12 @@
<%= javascript_include_tag "application" %>
<%= csrf_meta_tag %>
</head>
<body>
<body>
<div class="navbar-inverse navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="/">openSNP</a>
<ul class="nav">
<ul class="nav">
<li class=""><%= link_to("News", '/news') %></li>
<li class=""><%= link_to("Genotypes", :controller => "genotypes", :action => "index")%></li>
<li class="dropdown">
@@ -31,12 +31,13 @@
</ul>
<li class=""><%= link_to("SNPs", :controller => "snps", :action => "index") %></li>
<li class=""><%= link_to("Users", '/user_index') %></li>
<li class=""><%= link_to("Stats", '/statistics') %></li>
</ul>
<%= form_tag "/search", :method => "get",:class => "navbar-search pull-left", :authenticity_token => true do %>
<%= text_field_tag :search, nil, :placeholder => "Search here", :class => "search-query input-medium" %>
<%= submit_tag 'Search', class: 'hidden' %>
<% end %>
<ul class="nav pull-right">
<ul class="nav pull-right">
<% if current_user %>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
@@ -70,7 +71,7 @@
<%=link_to "x",{:controller => "users", :action => "remove_help_one", :id => current_user}, :remote => true, id: "remove_help_one",:class => "close" %>
<h4 class="alert-heading">Upload Your Genotyping File</h4>
<%=link_to(image_tag("fileupload.png"), "/genotypes/new")%><br/>
<%=link_to("Upload the genotyping raw-data you got","/genotypes/new")%> from <em>23andMe</em>, <em>deCODEme</em> or <em>FamilyTreeDNA</em> to the database of <em>openSNP</em> to share it with other personal genomics customers and scientists from all over the world.
<%=link_to("Upload the genotyping raw-data you got","/genotypes/new")%> from <em>23andMe</em>, <em>deCODEme</em> or <em>FamilyTreeDNA</em> to the database of <em>openSNP</em> to share it with other personal genomics customers and scientists from all over the world.
</div>
<%end%>
<%if current_user.user_phenotypes == [] and current_user.help_two == false%>
@@ -99,13 +100,13 @@
<div class="alert alert-success" data-dismiss="alert">
<button type="button" class="close" data-dismiss="alert">x</button>
<strong><%= flash[:notice].html_safe %></strong>
</div>
</div>
<% end %>
<% if flash[:warning] %>
<div class="alert alert-error" data-dismiss="alert">
<button type="button" class="close" data-dismiss="alert">x</button>
<strong><%= flash[:warning].html_safe %></strong>
</div>
</div>
<% end %>
<% if flash[:achievement] %>
<div class="alert alert-info" data-dismiss="alert">

View File

@@ -0,0 +1,6 @@
<h3>Statistics</h3>
See how we've been growing over the last years. Graphs are updated daily, raw data is provided as well.
<h4>Users</h4>
<img src="../data/plot_data/users.png"/><br/>
<i><a href="../data/plot_data/number_users.csv">Download raw data</a></i>

View File

@@ -52,6 +52,7 @@ Snpr::Application.routes.draw do
get '/signout', :to => 'user_sessions#destroy', :as => :logout
get '/faq', :to => 'static#faq'
get '/disclaimer', :to => 'static#disclaimer'
get '/statistics', :to => 'static#statistics'
get '/user_index', :to => 'users#index'
get '/rss', :to => 'genotypes#feed', :as => :feed, :defaults => {:format => 'rss' }
get '/search', :to => 'search_results#search'