concen 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -9
- data/LICENSE +1 -1
- data/README.md +23 -1
- data/app/assets/stylesheets/concen/application.css.sass +14 -16
- data/app/assets/stylesheets/concen/compass/_css3.scss +17 -0
- data/app/assets/stylesheets/concen/compass/_layout.scss +3 -0
- data/app/assets/stylesheets/concen/compass/_reset-legacy.scss +3 -0
- data/app/assets/stylesheets/concen/compass/_reset.scss +3 -0
- data/app/assets/stylesheets/concen/compass/_support.scss +36 -0
- data/app/assets/stylesheets/concen/compass/_typography.scss +4 -0
- data/app/assets/stylesheets/concen/compass/_utilities.scss +9 -0
- data/app/assets/stylesheets/concen/compass/css3/_appearance.scss +13 -0
- data/app/assets/stylesheets/concen/compass/css3/_background-clip.scss +43 -0
- data/app/assets/stylesheets/concen/compass/css3/_background-origin.scss +42 -0
- data/app/assets/stylesheets/concen/compass/css3/_background-size.scss +26 -0
- data/app/assets/stylesheets/concen/compass/css3/_border-radius.scss +135 -0
- data/app/assets/stylesheets/concen/compass/css3/_box-shadow.scss +93 -0
- data/app/assets/stylesheets/concen/compass/css3/_box-sizing.scss +13 -0
- data/app/assets/stylesheets/concen/compass/css3/_box.scss +111 -0
- data/app/assets/stylesheets/concen/compass/css3/_columns.scss +60 -0
- data/app/assets/stylesheets/concen/compass/css3/_font-face.scss +63 -0
- data/app/assets/stylesheets/concen/compass/css3/_gradient.scss +99 -0
- data/app/assets/stylesheets/concen/compass/css3/_images.scss +132 -0
- data/app/assets/stylesheets/concen/compass/css3/_inline-block.scss +16 -0
- data/app/assets/stylesheets/concen/compass/css3/_opacity.scss +19 -0
- data/app/assets/stylesheets/concen/compass/css3/_pie.scss +73 -0
- data/app/assets/stylesheets/concen/compass/css3/_shared.scss +38 -0
- data/app/assets/stylesheets/concen/compass/css3/_text-shadow.scss +62 -0
- data/app/assets/stylesheets/concen/compass/css3/_transform-legacy.scss +87 -0
- data/app/assets/stylesheets/concen/compass/css3/_transform.scss +598 -0
- data/app/assets/stylesheets/concen/compass/css3/_transition.scss +119 -0
- data/app/assets/stylesheets/concen/compass/layout/_grid-background.scss +178 -0
- data/app/assets/stylesheets/concen/compass/layout/_sticky-footer.scss +23 -0
- data/app/assets/stylesheets/concen/compass/layout/_stretching.scss +24 -0
- data/app/assets/stylesheets/concen/compass/reset/_utilities-legacy.scss +135 -0
- data/app/assets/stylesheets/concen/compass/reset/_utilities.scss +140 -0
- data/app/assets/stylesheets/concen/compass/typography/_links.scss +3 -0
- data/app/assets/stylesheets/concen/compass/typography/_lists.scss +4 -0
- data/app/assets/stylesheets/concen/compass/typography/_text.scss +4 -0
- data/app/assets/stylesheets/concen/compass/typography/_vertical_rhythm.scss +193 -0
- data/app/assets/stylesheets/concen/compass/typography/links/_hover-link.scss +5 -0
- data/app/assets/stylesheets/concen/compass/typography/links/_link-colors.scss +28 -0
- data/app/assets/stylesheets/concen/compass/typography/links/_unstyled-link.scss +7 -0
- data/app/assets/stylesheets/concen/compass/typography/lists/_bullets.scss +34 -0
- data/app/assets/stylesheets/concen/compass/typography/lists/_horizontal-list.scss +61 -0
- data/app/assets/stylesheets/concen/compass/typography/lists/_inline-block-list.scss +47 -0
- data/app/assets/stylesheets/concen/compass/typography/lists/_inline-list.scss +44 -0
- data/app/assets/stylesheets/concen/compass/typography/text/_ellipsis.scss +25 -0
- data/app/assets/stylesheets/concen/compass/typography/text/_force-wrap.scss +12 -0
- data/app/assets/stylesheets/concen/compass/typography/text/_nowrap.scss +2 -0
- data/app/assets/stylesheets/concen/compass/typography/text/_replacement.scss +34 -0
- data/app/assets/stylesheets/concen/compass/utilities/_color.scss +1 -0
- data/app/assets/stylesheets/concen/compass/utilities/_general.scss +6 -0
- data/app/assets/stylesheets/concen/compass/utilities/_links.scss +5 -0
- data/app/assets/stylesheets/concen/compass/utilities/_lists.scss +6 -0
- data/app/assets/stylesheets/concen/compass/utilities/_print.scss +17 -0
- data/app/assets/stylesheets/concen/compass/utilities/_sprites.scss +1 -0
- data/app/assets/stylesheets/concen/compass/utilities/_tables.scss +3 -0
- data/app/assets/stylesheets/concen/compass/utilities/_text.scss +5 -0
- data/app/assets/stylesheets/concen/compass/utilities/color/_contrast.scss +28 -0
- data/app/assets/stylesheets/concen/compass/utilities/general/_clearfix.scss +44 -0
- data/app/assets/stylesheets/concen/compass/utilities/general/_float.scss +30 -0
- data/app/assets/stylesheets/concen/compass/utilities/general/_hacks.scss +46 -0
- data/app/assets/stylesheets/concen/compass/utilities/general/_min.scss +16 -0
- data/app/assets/stylesheets/concen/compass/utilities/general/_reset.scss +2 -0
- data/app/assets/stylesheets/concen/compass/utilities/general/_tabs.scss +1 -0
- data/app/assets/stylesheets/concen/compass/utilities/general/_tag-cloud.scss +18 -0
- data/app/assets/stylesheets/concen/compass/utilities/links/_hover-link.scss +3 -0
- data/app/assets/stylesheets/concen/compass/utilities/links/_link-colors.scss +3 -0
- data/app/assets/stylesheets/concen/compass/utilities/links/_unstyled-link.scss +3 -0
- data/app/assets/stylesheets/concen/compass/utilities/lists/_bullets.scss +3 -0
- data/app/assets/stylesheets/concen/compass/utilities/lists/_horizontal-list.scss +3 -0
- data/app/assets/stylesheets/concen/compass/utilities/lists/_inline-block-list.scss +3 -0
- data/app/assets/stylesheets/concen/compass/utilities/lists/_inline-list.scss +3 -0
- data/app/assets/stylesheets/concen/compass/utilities/sprites/_base.scss +66 -0
- data/app/assets/stylesheets/concen/compass/utilities/sprites/_sprite-img.scss +56 -0
- data/app/assets/stylesheets/concen/compass/utilities/tables/_alternating-rows-and-columns.scss +20 -0
- data/app/assets/stylesheets/concen/compass/utilities/tables/_borders.scss +33 -0
- data/app/assets/stylesheets/concen/compass/utilities/tables/_scaffolding.scss +9 -0
- data/app/assets/stylesheets/concen/compass/utilities/text/_ellipsis.scss +3 -0
- data/app/assets/stylesheets/concen/compass/utilities/text/_nowrap.scss +3 -0
- data/app/assets/stylesheets/concen/compass/utilities/text/_replacement.scss +3 -0
- data/app/assets/stylesheets/concen/partials/_base.sass +4 -4
- data/app/assets/stylesheets/concen/partials/_variables.sass +5 -5
- data/app/helpers/concen/application_helper.rb +0 -6
- data/app/models/concen/page.rb +12 -3
- data/app/views/concen/grid_files/_form.html.erb +23 -0
- data/app/views/concen/grid_files/edit.html.erb +10 -0
- data/app/views/concen/pages/_file_list.erb +11 -0
- data/app/views/concen/pages/_files.erb +32 -0
- data/app/views/concen/pages/_form.html.erb +26 -0
- data/app/views/concen/pages/_nested_list.html.erb +22 -0
- data/app/views/concen/pages/edit.html.erb +19 -0
- data/app/views/concen/pages/index.html.erb +12 -0
- data/app/views/concen/pages/new.html.erb +10 -0
- data/app/views/concen/performances/_runtimes.html.erb +8 -0
- data/app/views/concen/performances/show.html.erb +40 -0
- data/app/views/concen/sessions/new.html.erb +17 -0
- data/app/views/concen/statuses/_server.html.erb +34 -0
- data/app/views/concen/statuses/show.html.erb +27 -0
- data/app/views/concen/traffics/_pages.html.erb +8 -0
- data/app/views/concen/traffics/_referrals.html.erb +12 -0
- data/app/views/concen/traffics/show.html.erb +40 -0
- data/app/views/concen/users/_form.html.erb +42 -0
- data/app/views/concen/users/{_password_reset.html.haml → _password_reset.html.erb} +0 -0
- data/app/views/concen/users/_settings.html.erb +23 -0
- data/app/views/concen/users/edit.html.erb +12 -0
- data/app/views/concen/users/index.html.erb +40 -0
- data/app/views/concen/users/new.html.erb +6 -0
- data/app/views/concen/users/new_invite.html.erb +24 -0
- data/app/views/concen/users/new_reset_password.html.erb +24 -0
- data/app/views/layouts/concen/{_additional_header_links.haml → _additional_header_links.html.erb} +0 -0
- data/app/views/layouts/concen/_header.html.erb +24 -0
- data/app/views/layouts/concen/{maintenance.html.haml → _iphone.html.erb} +0 -0
- data/app/views/layouts/concen/application.html.erb +42 -0
- data/app/views/layouts/concen/maintenance.html.erb +0 -0
- data/concen.gemspec +0 -2
- data/lib/concen/engine.rb +0 -1
- data/lib/concen/version.rb +1 -1
- data/test/support/raw_text/smartypants.html +1 -1
- data/test/support/raw_text/smartypants.txt +1 -1
- metadata +130 -74
- data/app/views/concen/grid_files/_form.html.haml +0 -15
- data/app/views/concen/grid_files/edit.html.haml +0 -7
- data/app/views/concen/pages/_file_list.haml +0 -7
- data/app/views/concen/pages/_files.haml +0 -24
- data/app/views/concen/pages/_form.html.haml +0 -17
- data/app/views/concen/pages/_nested_list.html.haml +0 -15
- data/app/views/concen/pages/edit.html.haml +0 -13
- data/app/views/concen/pages/index.html.haml +0 -12
- data/app/views/concen/pages/new.html.haml +0 -7
- data/app/views/concen/performances/_runtimes.html.haml +0 -5
- data/app/views/concen/performances/show.html.haml +0 -27
- data/app/views/concen/sessions/new.html.haml +0 -12
- data/app/views/concen/statuses/_server.html.haml +0 -19
- data/app/views/concen/statuses/show.html.haml +0 -18
- data/app/views/concen/traffics/_pages.html.haml +0 -5
- data/app/views/concen/traffics/_referrals.html.haml +0 -9
- data/app/views/concen/traffics/show.html.haml +0 -27
- data/app/views/concen/users/_form.html.haml +0 -29
- data/app/views/concen/users/_settings.html.haml +0 -15
- data/app/views/concen/users/edit.html.haml +0 -9
- data/app/views/concen/users/index.html.haml +0 -32
- data/app/views/concen/users/new.html.haml +0 -4
- data/app/views/concen/users/new_invite.html.haml +0 -15
- data/app/views/concen/users/new_reset_password.html.haml +0 -15
- data/app/views/layouts/concen/_header.html.haml +0 -18
- data/app/views/layouts/concen/_iphone.html.haml +0 -6
- data/app/views/layouts/concen/application.html.haml +0 -33
@@ -0,0 +1,12 @@
|
|
1
|
+
<% content_for :head_javascripts do %>
|
2
|
+
<%= javascript_include_tag "concen/pages" %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<div id="content">
|
6
|
+
<h1>
|
7
|
+
<span>Pages</span><% unless @page %><%= link_to "New Page", new_concen_page_path, :class => "link-button" %><% end %>
|
8
|
+
</h1>
|
9
|
+
<% if @page %>
|
10
|
+
<%= render :partial => "nested_list", :locals => {:page => @page, :root => true} %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<% content_for :head_javascripts do %>
|
2
|
+
<!--[if lt IE 8]>
|
3
|
+
<%= javascript_include_tag "concen/excanvas" %>
|
4
|
+
<![endif]-->
|
5
|
+
<%= javascript_include_tag "concen/performances" %>
|
6
|
+
<% end %>
|
7
|
+
|
8
|
+
<div id="content">
|
9
|
+
<div class="panels">
|
10
|
+
<div class="panel wide">
|
11
|
+
<div class="border">
|
12
|
+
<h3>Responses in Past Hour</h3>
|
13
|
+
<div class="graph">
|
14
|
+
<div id="recent-responses" style="width: 100%; height: 200px;"></div>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
<div class="panels">
|
20
|
+
<div class="panel total-runtime">
|
21
|
+
<div class="border">
|
22
|
+
<h3>Average Total Runtime</h3>
|
23
|
+
<ul></ul>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<div class="panel view-runtime">
|
27
|
+
<div class="border">
|
28
|
+
<h3>Average View Runtime</h3>
|
29
|
+
<ul></ul>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="panel mongodb-runtime edge">
|
33
|
+
<div class="border">
|
34
|
+
<h3>Average MongoDB Runtime</h3>
|
35
|
+
<ul></ul>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
<div class="clear"></div>
|
39
|
+
</div>
|
40
|
+
</div>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<div id="content">
|
2
|
+
<h1>Sign In</h1>
|
3
|
+
<%= form_tag concen_sessions_path do %>
|
4
|
+
<div class="field">
|
5
|
+
<%= label_tag :username %>
|
6
|
+
<%= text_field_tag :username, params[:username] %>
|
7
|
+
</div>
|
8
|
+
<div class="field">
|
9
|
+
<%= label_tag :password %>
|
10
|
+
<%= password_field_tag :password, params[:password] %>
|
11
|
+
</div>
|
12
|
+
<div class="actions">
|
13
|
+
<%= submit_tag "Sign In" %>
|
14
|
+
<%= link_to "Reset Password", new_reset_password_concen_users_path %>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
17
|
+
</div>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<ul>
|
2
|
+
<li>
|
3
|
+
<p>Uptime</p>
|
4
|
+
<p class="right"><%= @server_stats[:uptime] if @server_stats %></p>
|
5
|
+
</li>
|
6
|
+
<li>
|
7
|
+
<p>Processor</p>
|
8
|
+
<p class="right">
|
9
|
+
<% if @server_stats[:processor].present? %>
|
10
|
+
<%= "#{@server_stats[:processor][:user]}% user, #{@server_stats[:processor][:sys]}% sys, #{@server_stats[:processor][:idle]}% idle" %>
|
11
|
+
<% end %>
|
12
|
+
</p>
|
13
|
+
</li>
|
14
|
+
<li>
|
15
|
+
<p>Memory</p>
|
16
|
+
<p class="right">
|
17
|
+
<% if @server_stats[:memory].present? %>
|
18
|
+
<%= "#{@server_stats[:memory][:used]} MB used, #{@server_stats[:memory][:free]} MB free" %>
|
19
|
+
<% end %>
|
20
|
+
</p>
|
21
|
+
</li>
|
22
|
+
<li>
|
23
|
+
<p>MongoDB Data Size</p>
|
24
|
+
<p class="right"><%= number_to_human_size(@mongodb_stats["dataSize"]) %></p>
|
25
|
+
</li>
|
26
|
+
<li>
|
27
|
+
<p>MongoDB Index Size</p>
|
28
|
+
<p class="right"><%= number_to_human_size(@mongodb_stats["indexSize"]) %></p>
|
29
|
+
</li>
|
30
|
+
<li>
|
31
|
+
<p>MongoDB GridFS Size</p>
|
32
|
+
<p class="right"><%= number_to_human_size(@mongodb_grid_fs_stats) %></p>
|
33
|
+
</li>
|
34
|
+
</ul>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<% content_for :head_javascripts do %>
|
2
|
+
<%= javascript_include_tag "concen/statuses" %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<div id="content">
|
6
|
+
<div class="panels">
|
7
|
+
<div class="panel pages">
|
8
|
+
<div class="border">
|
9
|
+
<h3>Pages</h3>
|
10
|
+
<p class="big-number"></p>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
<div class="panel users">
|
14
|
+
<div class="border">
|
15
|
+
<h3>Users</h3>
|
16
|
+
<p class="big-number"></p>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
<div class="panel server edge">
|
20
|
+
<div class="border">
|
21
|
+
<h3>Server</h3>
|
22
|
+
<ul></ul>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<div class="clear"></div>
|
27
|
+
</div>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<% content_for :head_javascripts do %>
|
2
|
+
<!--[if lt IE 8]>
|
3
|
+
<%= javascript_include_tag "concen/excanvas" %>
|
4
|
+
<![endif]-->
|
5
|
+
<%= javascript_include_tag "concen/traffics" %>
|
6
|
+
<% end %>
|
7
|
+
|
8
|
+
<div id="content">
|
9
|
+
<div class="panels">
|
10
|
+
<div class="panel wide">
|
11
|
+
<div class="border">
|
12
|
+
<h3>Visits in Past 24 Hours</h3>
|
13
|
+
<div class="graph">
|
14
|
+
<div id="recent-visits" style="width: 100%; height: 200px;"></div>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
<div class="panels">
|
20
|
+
<div class="panel visits-1-hour">
|
21
|
+
<div class="border">
|
22
|
+
<h3>Visits in Past Hour</h3>
|
23
|
+
<p class="big-number"></p>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<div class="panel pages">
|
27
|
+
<div class="border">
|
28
|
+
<h3>Pages</h3>
|
29
|
+
<ul></ul>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="panel referrals edge">
|
33
|
+
<div class="border">
|
34
|
+
<h3>Referrals</h3>
|
35
|
+
<ul></ul>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
<div class="clear"></div>
|
39
|
+
</div>
|
40
|
+
</div>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<%= form_for @user do |f| %>
|
2
|
+
<% if @user.errors.any? %>
|
3
|
+
<div id="errorExplanation">
|
4
|
+
<h3><%= "#{pluralize(@user.errors.count, "error")} prohibited this user from being saved:" %></h3>
|
5
|
+
<ul>
|
6
|
+
<% @user.errors.full_messages.each do |msg| %>
|
7
|
+
<li><%= msg %></li>
|
8
|
+
<% end %>
|
9
|
+
</ul>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
12
|
+
<% if @user.invitation_token %>
|
13
|
+
<%= f.hidden_field :invitation_token %>
|
14
|
+
<% end %>
|
15
|
+
<div class="field">
|
16
|
+
<%= f.label :full_name %>
|
17
|
+
<%= f.text_field :full_name %>
|
18
|
+
</div>
|
19
|
+
<div class="field">
|
20
|
+
<%= f.label :username %>
|
21
|
+
<%= f.text_field :username %>
|
22
|
+
</div>
|
23
|
+
<div class="field">
|
24
|
+
<%= f.label :email %>
|
25
|
+
<%= f.text_field :email %>
|
26
|
+
</div>
|
27
|
+
<div class="field">
|
28
|
+
<%= f.label :password %>
|
29
|
+
<%= f.password_field :password %>
|
30
|
+
</div>
|
31
|
+
<div class="field">
|
32
|
+
<%= f.label :password_confirmation %>
|
33
|
+
<%= f.password_field :password_confirmation %>
|
34
|
+
</div>
|
35
|
+
<div class="actions">
|
36
|
+
<%= f.submit "Save" %>
|
37
|
+
<% if @user.persisted? %>
|
38
|
+
<%= link_to "Delete", concen_page_path(@user), :method => :delete %>
|
39
|
+
<% end %>
|
40
|
+
<%= link_to "Cancel", concen_pages_path %>
|
41
|
+
</div>
|
42
|
+
<% end %>
|
File without changes
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<%= form_for @user do |f| %>
|
2
|
+
<% if @user.errors.any? %>
|
3
|
+
<div id="errorExplanation">
|
4
|
+
<h3><%= "#{pluralize(@user.errors.count, "error")} prohibited this user from being saved:" %></h3>
|
5
|
+
<ul>
|
6
|
+
<% @user.errors.full_messages.each do |msg| %>
|
7
|
+
<li><%= msg %></li>
|
8
|
+
<% end %>
|
9
|
+
</ul>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
12
|
+
<div class="field">
|
13
|
+
<%= f.label :current_password, "Current Password" %>
|
14
|
+
<%= f.password_field :current_password %>
|
15
|
+
</div>
|
16
|
+
<div class="field">
|
17
|
+
<%= f.label :password, "New Password" %>
|
18
|
+
<%= f.password_field :password %>
|
19
|
+
</div>
|
20
|
+
<div class="actions">
|
21
|
+
<%= f.submit "Update" %>
|
22
|
+
</div>
|
23
|
+
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div id="content">
|
2
|
+
<h1>Edit User Settings</h1>
|
3
|
+
<div class="clearfix">
|
4
|
+
<% if params.try(:[], :invitation_token) || params.try(:[], :concen_user).try(:[], :invitation_token) %>
|
5
|
+
<%= render "form" %>
|
6
|
+
<% elsif params.try(:[], :password_reset_token) || params.try(:[], :concen_user).try(:[], :password_reset_token) %>
|
7
|
+
<%= render "password_reset" %>
|
8
|
+
<% else %>
|
9
|
+
<%= render "settings" %>
|
10
|
+
<% end %>
|
11
|
+
</div>
|
12
|
+
</div>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<% content_for :head_javascripts do %>
|
2
|
+
<%= javascript_include_tag "concen/users" %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<div id="content">
|
6
|
+
<h1>
|
7
|
+
<span>Users</span><%= link_to "Invite New User", new_invite_concen_users_path, :class => "link-button" %>
|
8
|
+
</h1>
|
9
|
+
<div class="border">
|
10
|
+
<table class="users">
|
11
|
+
<thead>
|
12
|
+
<tr>
|
13
|
+
<th>Username</th>
|
14
|
+
<th>Full Name</th>
|
15
|
+
<th>Email</th>
|
16
|
+
<th>Sign Up On</th>
|
17
|
+
<th>Pages</th>
|
18
|
+
<th>Full Control</th>
|
19
|
+
<% if current_concen_user.full_control %>
|
20
|
+
<th>Actions</th>
|
21
|
+
<% end %>
|
22
|
+
</tr>
|
23
|
+
</thead>
|
24
|
+
<tbody>
|
25
|
+
<% for user in @users %>
|
26
|
+
<tr>
|
27
|
+
<td><%= user.username %></td>
|
28
|
+
<td><%= user.email %></td>
|
29
|
+
<td><%= user.created_at.strftime("%d %B %Y") %></td>
|
30
|
+
<td><%= Concen::Page.where(:authors.in => [user.username, user.full_name, user.email]).count %></td>
|
31
|
+
<td><%= check_box_tag "full_control", 1, user.full_control, "data-path" => toggle_attribute_concen_user_path(user), :disabled => user == current_concen_user || !current_concen_user.full_control %></td>
|
32
|
+
<% if current_concen_user.full_control %>
|
33
|
+
<td><%= link_to "Delete", concen_user_path(user), :method => :delete, :confirm => "Are you sure?" %></td>
|
34
|
+
<% end %>
|
35
|
+
</tr>
|
36
|
+
<% end %>
|
37
|
+
</tbody>
|
38
|
+
</table>
|
39
|
+
</div>
|
40
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<div id="content">
|
2
|
+
<h1>Send Invitation</h1>
|
3
|
+
<div class="clearfix">
|
4
|
+
<%= form_for @user, :url => invite_concen_users_path do |f| %>
|
5
|
+
<% if @user.errors.any? %>
|
6
|
+
<div id="errorExplanation">
|
7
|
+
<h3><%= "#{pluralize(@user.errors.count, "error")} prohibited this user from being saved:" %></h3>
|
8
|
+
<ul>
|
9
|
+
<% @user.errors.full_messages.each do |msg| %>
|
10
|
+
<li><%= msg %></li>
|
11
|
+
<% end %>
|
12
|
+
</ul>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
<div class="field">
|
16
|
+
<%= f.label :email %>
|
17
|
+
<%= f.text_field :email %>
|
18
|
+
</div>
|
19
|
+
<div class="actions">
|
20
|
+
<%= f.submit "Invite" %>
|
21
|
+
</div>
|
22
|
+
<% end %>
|
23
|
+
</div>
|
24
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<div id="content">
|
2
|
+
<h1>Reset Password</h1>
|
3
|
+
<div class="clearfix">
|
4
|
+
<%= form_for @user, :url => reset_password_concen_users_path do |f| %>
|
5
|
+
<% if @user.errors.any? %>
|
6
|
+
<div id="errorExplanation">
|
7
|
+
<h3><%= "#{pluralize(@user.errors.count, "error")} prohibited this user from being saved:" %></h3>
|
8
|
+
<ul>
|
9
|
+
<% @user.errors.full_messages.each do |msg| %>
|
10
|
+
<li><%= msg %></li>
|
11
|
+
<% end %>
|
12
|
+
</ul>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
<div class="field">
|
16
|
+
<%= f.label :email %>
|
17
|
+
<%= f.text_field :email %>
|
18
|
+
</div>
|
19
|
+
<div class="actions">
|
20
|
+
<%= f.submit "Send" %>
|
21
|
+
</div>
|
22
|
+
<% end %>
|
23
|
+
</div>
|
24
|
+
</div>
|
data/app/views/layouts/concen/{_additional_header_links.haml → _additional_header_links.html.erb}
RENAMED
File without changes
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<header>
|
2
|
+
<h1>
|
3
|
+
<%= link_to concen_root_path do %>
|
4
|
+
<span class="engine-name">Concen</span>
|
5
|
+
<span class="application-name"><%= Concen.application_name %></span>
|
6
|
+
<% end %>
|
7
|
+
</h1>
|
8
|
+
<nav>
|
9
|
+
<ul>
|
10
|
+
<% if current_concen_user %>
|
11
|
+
<li><%= link_to "Status", concen_status_path %></li>
|
12
|
+
<li><%= link_to "Traffic", concen_traffic_path %></li>
|
13
|
+
<li><%= link_to "Performance", concen_performance_path %></li>
|
14
|
+
<li><%= link_to "Pages", concen_pages_path %></li>
|
15
|
+
<li><%= link_to "Users", concen_users_path %></li>
|
16
|
+
<%= render "layouts/concen/additional_header_links" %>
|
17
|
+
<li><%= link_to "Settings", edit_concen_user_path(current_concen_user) %></li>
|
18
|
+
<li><%= link_to "Sign Out", concen_signout_path %></li>
|
19
|
+
<% else %>
|
20
|
+
<li><%= link_to "Sign In", concen_signin_path %></li>
|
21
|
+
<% end %>
|
22
|
+
</ul>
|
23
|
+
</nav>
|
24
|
+
</header>
|
File without changes
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html class="no-js" lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title><%= "#{@page_title + ' - ' if @page_title}Concen - #{Concen.application_name}" %></title>
|
6
|
+
<meta name="description" content="Web application to control and monitor a website." >
|
7
|
+
<meta name="author" content="Steve Randy Tantra">
|
8
|
+
<meta name="copyright" content="Copyright © 2011 by Steve Randy Tantra">
|
9
|
+
<meta name="DC.title" content="Status - Control Center - Steve Randy Tantra">
|
10
|
+
<meta name="DC.subject" content="Control, Monitor, Center, Web Application">
|
11
|
+
<meta name="DC.creator" content="Steve Randy Tantra">
|
12
|
+
<meta name="viewport" content="width = 1024">
|
13
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
14
|
+
<%= csrf_meta_tag %>
|
15
|
+
<%= stylesheet_link_tag "concen/application" %>
|
16
|
+
<% if content_for?(:head_stylesheets) %>
|
17
|
+
<%= yield :head_stylesheets %>
|
18
|
+
<% end %>
|
19
|
+
<!--[if lt IE 8]>
|
20
|
+
<%= stylesheet_link_tag "concen/ie" %>
|
21
|
+
<![endif]-->
|
22
|
+
<script type="text/javascript" src="http://use.typekit.com/<%= Concen.typekit_id %>.js"></script>
|
23
|
+
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
24
|
+
<%= javascript_include_tag "concen/application" %>
|
25
|
+
<% if content_for?(:head_javascripts) %>
|
26
|
+
<%= yield :head_javascripts %>
|
27
|
+
<% end %>
|
28
|
+
<% if content_for?(:head) %>
|
29
|
+
<%= yield :head %>
|
30
|
+
<% end %>
|
31
|
+
</head>
|
32
|
+
<body class="concen">
|
33
|
+
<%= render "layouts/concen/header" %>
|
34
|
+
<%= yield %>
|
35
|
+
<footer class="clearfix">
|
36
|
+
<p>
|
37
|
+
<span>Created by</span>
|
38
|
+
<%= link_to "Steve Randy Tantra", "http://steverandytantra.com/" %>
|
39
|
+
</p>
|
40
|
+
</footer>
|
41
|
+
</body>
|
42
|
+
</html>
|