This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/admin/dashboards/index.html.erb

570 lines
24 KiB
Plaintext
Raw Normal View History

2012-09-13 18:38:56 +00:00
<% content_for :page_specific_css do -%>
<%= stylesheet_link_tag "item" %>
<% end -%>
<div id="isotope">
<div class="item element">
2013-01-09 07:57:31 +00:00
<h3><i class="icons-book-2"></i><%= t(:content) %></h3>
2012-05-08 21:53:07 +00:00
<div class="detail w-a h-a">
<p class="totle"><span><%= t(:all_content) %></span><%= @module_app_contents_total %></p>
2012-04-29 16:17:18 +00:00
<table class="table table-striped">
<thead>
<tr>
<th><%= t(:module) %></th>
<th class="span2"><%= t(:quantity) %></th>
</tr>
</thead>
</table>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table class="table table-striped">
<tbody>
2012-05-08 21:53:07 +00:00
<% @module_app_contents.each do |module_app_content| %>
<tr>
<td><%= link_to t("dashboard.#{module_app_content[0]}"), get_link(module_app_content[0]) %></td>
<td class="span2"><%= module_app_content[1] %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
2012-05-08 21:53:07 +00:00
<!-- <div class="item element">
<h3><i class="icons-"></i><a href=""><%= t(:member_) %></a></h3>
<div class="detail w-a h-a">
2012-04-29 16:17:18 +00:00
<p class="totle"><span><%= t(:all_member) %></span>2,217</p>
<table class="table table-striped">
<thead>
<tr>
<th><%= t(:role) %></th>
<th class="span2"><%= t(:quantity) %></th>
</tr>
</thead>
</table>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table class="table table-striped">
<tbody>
<tr>
<td>University</td>
<td>2,304</td>
</tr>
<tr>
<td>Master</td>
<td>783</td>
</tr>
<tr>
<td>Doctor</td>
<td>45</td>
</tr>
<tr>
<td>Staff</td>
<td>62</td>
</tr>
<tr>
<td>Teacher</td>
<td>52</td>
</tr>
<tr>
<td>Professor</td>
<td>20</td>
</tr>
<tr>
<td>Assistant Professor</td>
<td>41</td>
</tr>
<tr>
<td>Substitute teacher</td>
<td>37</td>
</tr>
<tr>
<td>Lecturer</td>
<td>41</td>
</tr>
<tr>
<td>Part-time teacher</td>
<td>20</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="item element">
2013-01-09 07:57:31 +00:00
<h3><i class="icons-"></i><a href=""><%= t(:file_) %></a></a></h3>
<div class="detail w-a h-a">
2012-04-29 16:17:18 +00:00
<p class="totle"><span><%= t(:all_file) %></span>3,422</p>
<table class="table table-striped">
<thead>
<tr>
<th><%= t(:file_type) %></th>
<th class="span2"><%= t(:quantity) %></th>
</tr>
</thead>
</table>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table class="table table-striped">
<tbody>
<tr>
2012-04-29 16:17:18 +00:00
<td>Word</td>
<td>304</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>PDF</td>
<td>783</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>PowerPoint</td>
<td>45</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Excel</td>
<td>62</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Jpeg</td>
<td>52</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Gif</td>
<td>20</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Png</td>
<td>41</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Avi</td>
<td>37</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Txt</td>
<td>41</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Zip</td>
<td>20</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
2012-05-08 21:53:07 +00:00
</div> -->
2012-05-08 21:55:47 +00:00
<!-- <div class="item element">
2012-04-29 16:17:18 +00:00
<h3><i class="icons-"></i><a href=""><%= t(:referral_in_links) %></a></h3>
<div class="detail w-a h-a">
<p class="totle"><span><%= t(:statistics) %></span>517</p>
<table class="table table-striped">
<thead>
<tr>
<th><%= t(:site_name) %></th>
<th class="span2"><%= t(:statistics) %></th>
</tr>
</thead>
</table>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table class="table table-striped">
<tbody>
<tr>
2012-04-29 16:17:18 +00:00
<td>Ruling</td>
<td class="span2">36</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Yahoo</td>
<td class="span2">31</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Google</td>
<td class="span2">3,187</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>facebook</td>
<td class="span2">公告</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title5</td>
<td class="span2">公告</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title6</td>
<td class="span2">頁面</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title7</td>
<td class="span2">頁面</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title8</td>
<td class="span2">公告</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title9</td>
<td class="span2">頁面</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title10</td>
<td class="span2">公告</td>
</tr>
2012-04-29 16:17:18 +00:00
</tbody>
</table>
</div>
</div>
</div>
</div>
2012-05-08 21:55:47 +00:00
</div> -->
2012-05-08 21:53:07 +00:00
<!-- <div class="item element">
2012-04-29 16:17:18 +00:00
<h3><i class="icons-"></i><a href=""><%= t(:most_visited_page) %></a></h3>
<div class="detail noStatistics w-b h-a">
<table class="table table-striped">
<thead>
<tr>
<th><%= t(:title) %></th>
<th class="span2"><%= t(:module) %></th>
<th class="span2"><%= t(:hits) %></th>
</tr>
</thead>
</table>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table class="table table-striped">
<tbody>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title1</td>
<td class="span2">公告</td>
<td class="span2">2,549</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title2</td>
<td class="span2">頁面</td>
<td class="span2">1,022</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title3</td>
<td class="span2">頁面</td>
<td class="span2">928</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title4</td>
<td class="span2">公告</td>
<td class="span2">904</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title5</td>
<td class="span2">公告</td>
<td class="span2">867</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title6</td>
<td class="span2">頁面</td>
<td class="span2">830</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title7</td>
<td class="span2">頁面</td>
<td class="span2">749</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title8</td>
<td class="span2">公告</td>
<td class="span2">702</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title9</td>
<td class="span2">頁面</td>
<td class="span2">639</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title10</td>
<td class="span2">公告</td>
<td class="span2">549</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title1</td>
<td class="span2">公告</td>
<td class="span2">2,549</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title2</td>
<td class="span2">頁面</td>
<td class="span2">1,022</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title3</td>
<td class="span2">頁面</td>
<td class="span2">928</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title4</td>
<td class="span2">公告</td>
<td class="span2">904</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title5</td>
<td class="span2">公告</td>
<td class="span2">867</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title6</td>
<td class="span2">頁面</td>
<td class="span2">830</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title7</td>
<td class="span2">頁面</td>
<td class="span2">749</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title8</td>
<td class="span2">公告</td>
<td class="span2">702</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title9</td>
<td class="span2">頁面</td>
<td class="span2">639</td>
</tr>
<tr>
2012-04-29 16:17:18 +00:00
<td>Title10</td>
<td class="span2">公告</td>
<td class="span2">549</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
2012-05-15 13:26:09 +00:00
<div class="item element">
2012-05-15 13:26:09 +00:00
<h3><i class="icons-"></i><a href=""><%= t(:site_info) %></a></h3>
<div class="detail noStatistics w-b h-a">
2012-04-29 16:17:18 +00:00
<table class="table table-striped">
<thead>
<tr>
<th><%= t(:item) %></th>
2012-05-15 13:26:09 +00:00
<th class="span6"><%= t(:content) %></th>
2012-04-29 16:17:18 +00:00
</tr>
</thead>
</table>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table class="table table-striped">
<tbody>
<tr>
2012-05-15 13:26:09 +00:00
<td>Title:</td>
<td class="span6">National Chengchi University</td>
</tr>
<tr>
2012-05-15 13:26:09 +00:00
<td>Description:</td>
<td class="span6">......</td>
</tr>
<tr>
2012-05-15 13:26:09 +00:00
<td>Keywords</td>
<td class="span6">.....</td>
</tr>
<tr>
<td>Online Date:</td>
<td class="span6">2012/04/30</td>
</tr>
<tr>
<td>WedID:</td>
<td class="span6">nccu</td>
</tr>
<tr>
<td>Softwave Version:</td>
<td class="span6">R4 beta</td>
</tr>
<tr>
<td>Warranty:</td>
<td class="span6">Valid</td>
</tr>
2012-04-29 16:17:18 +00:00
</tbody>
</table>
</div>
</div>
</div>
</div>
2012-05-15 13:26:09 +00:00
</div> -->
2012-04-29 16:17:18 +00:00
<div class="item element">
2013-01-09 07:57:31 +00:00
<h3><i class="icons-airplane"></i><%= t(:traffic) %></h3>
2012-05-15 13:26:09 +00:00
<div class="detail w-a h-a">
<p class="totle"><span><%= t(:total_visitors) %></span><%= display_visitors %></p>
2012-04-29 16:17:18 +00:00
<table class="table table-striped">
<thead>
<tr>
<th><%= t(:item) %></th>
2012-05-15 13:26:09 +00:00
<th class="span2"><%= t(:data) %></th>
2012-04-29 16:17:18 +00:00
</tr>
</thead>
</table>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table class="table table-striped">
<tbody>
<tr>
2012-05-15 13:26:09 +00:00
<td><%= t(:visitors_today) %></td>
<td><%= display_visitors_today %></td>
</tr>
<tr>
2012-05-15 13:26:09 +00:00
<td><%= t(:visitors_this_week) %></td>
<td><%= display_visitors_this_week %></td>
</tr>
<tr>
2012-05-15 13:26:09 +00:00
<td><%= t(:visitors_this_month) %></td>
<td><%= display_visitors_this_month %></td>
</tr>
<tr>
2012-05-15 13:26:09 +00:00
<td><%= t(:visitors_this_year) %></td>
<td><%= display_visitors_this_year %></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
2012-05-15 13:26:09 +00:00
</div>
<div class="item element">
2013-01-09 07:57:31 +00:00
<h3><i class="icons-cycle"></i><%= t(:recent_update) %></h3>
2012-05-08 21:53:07 +00:00
<div class="detail noStatistics w-b h-a">
2012-04-29 16:17:18 +00:00
<table class="table table-striped">
<thead>
<tr>
<th><%= t(:title) %></th>
<th class="span2"><%= t(:module) %></th>
</tr>
</thead>
</table>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table class="table table-striped">
<tbody>
2012-05-08 21:53:07 +00:00
<% @recent_updated.each do |object| %>
<tr>
2012-07-25 21:58:09 +00:00
<td><%= link_to ((object[0].title rescue nil) || (object[0].page.title rescue nil)), get_link_to_object(object[0]) %></td>
2012-07-30 10:37:20 +00:00
<td class="span2"><%= link_to t("dashboard.#{object[0].class.to_s.underscore}"), get_link(object[0].class.to_s.underscore) %></td>
2012-05-08 21:53:07 +00:00
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
2012-05-15 13:26:09 +00:00
<div class="item element">
2012-11-28 16:26:36 +00:00
<h3><i class="icons-trophy"></i><%= t(:most_visited_page) %></h3>
2012-05-15 13:26:09 +00:00
<div class="detail noStatistics w-b h-a">
<table class="table table-striped">
<thead>
<tr>
<th><%= t(:title) %></th>
<th class="span2"><%= t(:module) %></th>
<th class="span2"><%= t(:hits) %></th>
</tr>
</thead>
</table>
<div class="detal-list my_scroll">
<div class="scrollbar">
<div class="track">
<div class="thumb">
<div class="end"></div>
</div>
</div>
</div>
<div class="viewport">
<div class="overview">
<table class="table table-striped">
<tbody>
<% @most_visited.each do |object| %>
<tr>
2012-07-25 21:58:09 +00:00
<td><%= link_to ((object[0].title rescue nil) || (object[0].page.title rescue nil)), get_link_to_object(object[0]) %></td>
2012-07-30 10:34:54 +00:00
<td class="span2"><%= link_to t("dashboard.#{object[0].class.to_s.underscore}"), get_link(object[0].class.to_s.underscore) %></td>
2012-05-15 13:26:09 +00:00
<td class="span2"><%= object[1] %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>