mcms 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,30 @@
1
+ <!--
2
+
3
+ @File Name :_head.html.erb
4
+
5
+ @Company Name :Mindfire Solutions Pvt. Ltd.
6
+
7
+ @Creator Name :Indranil Mukherjee
8
+
9
+ @Date Created :2012-07-12
10
+
11
+ @Date Modified :2012-08-01
12
+
13
+ @Last Modification Details :Code cleanup on head section
14
+
15
+ @Purpose :Main layout of mcms_authentication head section
16
+
17
+ -->
18
+
19
+ <head>
20
+
21
+ <meta charset="utf-8" />
22
+ <meta content="IE=edge" http-equiv="X-UA-Compatible" />
23
+ <title>MCMS</title>
24
+ <link type="image/x-icon" href="/assets/mcms/favicon.ico" rel="shortcut icon"/>
25
+ <%= stylesheet_link_tag "dashboard", :media => "all" %>
26
+
27
+ <!-- This is to prevent from outside forgery -->
28
+ <%= csrf_meta_tags %>
29
+
30
+ </head>
@@ -1,2 +1,133 @@
1
- <h1>Dashboard#index</h1>
2
- <p>Find me in app/views/dashboard/index.html.erb</p>
1
+ <!--
2
+
3
+ @File Name :_head.html.erb
4
+
5
+ @Company Name :Mindfire Solutions Pvt. Ltd.
6
+
7
+ @Creator Name :Indranil Mukherjee
8
+
9
+ @Date Created :2012-07-12
10
+
11
+ @Date Modified :2012-08-01
12
+
13
+ @Last Modification Details :Code cleanup on head section
14
+
15
+ @Purpose :Main layout of mcms_authentication head section
16
+
17
+ -->
18
+
19
+ <div id="dashboard">
20
+
21
+ <% if flash[:notice] || flash[:error] %>
22
+
23
+ <div class="flash flash-notice" style="margin-top:10px;" id="flash"><%= flash[:notice] || flash[:error] %></div>
24
+
25
+ <% end %>
26
+
27
+ <div class="news" id="all">
28
+
29
+
30
+ <% @all_events.each do |page| %>
31
+
32
+ <div class="alert">
33
+
34
+ <div class="body">
35
+
36
+ <span class="mini-icon mini-icon-issue-comment"></span>
37
+ <div class="title">
38
+
39
+ <a href="#"><%= page.class %></a>
40
+ <span>
41
+
42
+ <% if page.class.to_s == "User" %>
43
+
44
+ <%= page.first_name %> was updated about
45
+
46
+ <% else %>
47
+
48
+ <%= page.title %> was updated about
49
+
50
+ <% end %>
51
+
52
+ <%= distance_of_time_in_words(page.updated_at,Time.now) %> ago.
53
+
54
+ </span>
55
+
56
+ </div>
57
+
58
+ </div>
59
+
60
+ </div>
61
+
62
+ <% end %>
63
+
64
+ <div id="paginator">
65
+
66
+ <%= paginate @all_events %>
67
+
68
+ </div>
69
+
70
+ </div>
71
+ <div id="your-repos" class="repos">
72
+
73
+ <div class="top-bar">
74
+
75
+ <h2>Quick tasks </h2>
76
+ <a class="button new-repo" target="_new" href="/">Switch To Website</a>
77
+
78
+ </div>
79
+
80
+ <ul class="repo-list">
81
+
82
+ <li class="public source">
83
+
84
+ <a href="/mcms/pages/new">
85
+
86
+ <span class="mini-icon "></span>
87
+ <span class="owner">New</span> <span class="repo">Page</span>
88
+ <span class="arrow"></span>
89
+
90
+ </a>
91
+
92
+ </li>
93
+ <li class="public source">
94
+
95
+ <a href="/mcms/users/new">
96
+
97
+ <span class="mini-icon "></span>
98
+ <span class="owner">New</span> <span class="repo">User</span>
99
+ <span class="arrow"></span>
100
+
101
+ </a>
102
+
103
+ </li>
104
+ <li class="public source">
105
+
106
+ <a href="/mcms/role/new">
107
+
108
+ <span class="mini-icon "></span>
109
+ <span class="owner">New</span> <span class="repo">Role</span>
110
+ <span class="arrow"></span>
111
+
112
+ </a>
113
+
114
+ </li>
115
+ <li class="public fork">
116
+
117
+ <a href="/mcms/blog/posts/new">
118
+
119
+ <span class="mini-icon "></span>
120
+ <span class="owner">New</span> <span class="repo">Post</span>
121
+ <span class="arrow"></span>
122
+
123
+ </a>
124
+
125
+ </li>
126
+
127
+ </ul>
128
+
129
+ <div class="bottom-bar"></div>
130
+
131
+ </div>
132
+
133
+ </div>
@@ -0,0 +1,38 @@
1
+ <!--
2
+
3
+ @File Name :_head.html.erb
4
+
5
+ @Company Name :Mindfire Solutions Pvt. Ltd.
6
+
7
+ @Creator Name :Indranil Mukherjee
8
+
9
+ @Date Created :2012-07-12
10
+
11
+ @Date Modified :2012-08-01
12
+
13
+ @Last Modification Details :Code cleanup on head section
14
+
15
+ @Purpose :Main layout of mcms_authentication
16
+
17
+ -->
18
+ <head>
19
+ <meta charset="utf-8">
20
+ <meta content="IE=edge" http-equiv="X-UA-Compatible">
21
+ <title>MCMS</title>
22
+
23
+ <link type="image/x-icon" href="/assets/mcms/favicon.ico" rel="shortcut icon"/>
24
+
25
+
26
+ <%= stylesheet_link_tag "dashboard", :media => "all" %>
27
+
28
+ <%= javascript_include_tag "dashboard" %>
29
+
30
+ <%= yield :head %>
31
+
32
+
33
+ <!-- This is to prevent from outside forgery -->
34
+
35
+ <%= csrf_meta_tags %>
36
+
37
+ </head>
38
+
@@ -0,0 +1,91 @@
1
+ <!--
2
+
3
+ @File Name :main_layout.html.erb
4
+
5
+ @Company Name :Mindfire Solutions Pvt. Ltd.
6
+
7
+ @Creator Name :Indranil Mukherjee
8
+
9
+ @Date Created :2012-07-12
10
+
11
+ @Date Modified :2012-08-01
12
+
13
+ @Last Modification Details :Updating the main layout of mcms authentication
14
+
15
+ @Purpose :Main layout of mcms_authentication
16
+
17
+ -->
18
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
19
+ <html>
20
+ <%= render "layouts/mcms/head" %>
21
+
22
+ <body class=" page-dashboard env-production ">
23
+ <div id="wrapper">
24
+ <div class="true clearfix" id="header">
25
+ <div class="container clearfix">
26
+ <%= link_to image_tag("/assets/mcms/logo_03.png", :class => "github-logo-4x",:height => "30"), '/mcms/users/logout',:alt => "mcms" %>
27
+ <div id="userbox">
28
+ <% unless user_signed_in? %>
29
+ <div id="user">
30
+ <%= link_to "Annonymous user","#",:class => "name",:style => "text-decoration:none;" %>
31
+ </div>
32
+
33
+ <ul id="user-links">
34
+ <li>
35
+ <%= link_to "Log in","#",:class => "name",:style => "text-decoration:none;" %>
36
+ </li>
37
+ </ul>
38
+ <% else %>
39
+
40
+ <div id="user">
41
+ Welcome,
42
+ <%= link_to "#{current_user.first_name || current_user.email}","#", :class => "name", :style => "text-decoration:none;" %>
43
+ </div>
44
+ <ul id="user-links">
45
+ <li>
46
+ <%= link_to "Log out" , "/mcms/users/logout" ,:class => "name",:style => "text-decoration:none;" %>
47
+ </li>
48
+ </ul>
49
+ <% end %>
50
+ </div>
51
+ </div>
52
+ </div>
53
+
54
+ <div class="site clearfix"><%#= McmsAuthentication::Engine.root_path %>
55
+ <div class="container" id="site-container">
56
+ <div class="pagehead shrunken dashboard">
57
+ <% if user_signed_in? %>
58
+ <ul class="tabs">
59
+ <li ><%= link_to "Dashboard","/mcms/dashboard" %></li>
60
+ <li><%= link_to "Pages","/mcms/pages" %></li>
61
+ <li><%= link_to "Blog","/mcms/blog/posts" %></li>
62
+ <li><%= link_to "Users","/mcms/users" %></li>
63
+ <li><%= link_to "Resources","/mcms/resources" %></li>
64
+ </ul>
65
+ <% end %>
66
+ </div><!-- /.pagehead -->
67
+
68
+ <div id="dashboard">
69
+ <%= yield %>
70
+ </div>
71
+ </div>
72
+ <div class="context-overlay"></div>
73
+ </div>
74
+ <div id="footer-push"></div><!-- hack for sticky footer -->
75
+ </div><!-- end of wrapper - hack for sticky footer -->
76
+
77
+ <!-- footer -->
78
+ <div id="footer">
79
+ <div class="upper-footer">
80
+ </div><!-- /.upper-footer -->
81
+ <div class="lower-footer">
82
+ <div class="container clearfix">
83
+ <p >&copy; 2012 <span >Mindfire Solutions Pvt. Ltd.</span> All rights reserved.</p>
84
+ </div><!-- /#legal or /#legal_ie-->
85
+ </div><!-- /.site -->
86
+ </div><!-- /.lower-footer -->
87
+ <!-- /#footer -->
88
+
89
+ </body>
90
+ </html>
91
+
data/config/routes.rb CHANGED
@@ -1,11 +1,13 @@
1
1
  Rails.application.routes.draw do
2
2
 
3
3
 
4
- namespace :admin, :path => "mcms" do
4
+ # namespace :admin, :path => "mcms" do
5
5
 
6
- match '/dashboard', :to => "dashboard#index"
6
+ match 'mcms/dashboard', :to => "dashboard#index"
7
7
 
8
- end
8
+ match '*path' => "pages#show", :as => :show_page
9
+
10
+ # end
9
11
 
10
12
 
11
13
  end
data/lib/mcms/engine.rb CHANGED
@@ -2,8 +2,9 @@ module Mcms
2
2
  class Engine < ::Rails::Engine
3
3
 
4
4
  require "mcms_authentication"
5
- require "mcms_pages"
6
5
  require "mcms_blog"
6
+ require "mcms_pages"
7
+ require "kaminari"
7
8
 
8
9
  end
9
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mcms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-11 00:00:00.000000000 Z
12
+ date: 2012-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -28,7 +28,7 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
- name: jquery-rails
31
+ name: mcms_authentication
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
@@ -44,7 +44,7 @@ dependencies:
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
46
  - !ruby/object:Gem::Dependency
47
- name: mcms_authentication
47
+ name: mcms_resources
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
@@ -76,7 +76,7 @@ dependencies:
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  - !ruby/object:Gem::Dependency
79
- name: mcms_blog
79
+ name: kaminari
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
@@ -98,13 +98,17 @@ executables: []
98
98
  extensions: []
99
99
  extra_rdoc_files: []
100
100
  files:
101
+ - app/views/dashboard/_head.html.erb
101
102
  - app/views/dashboard/index.html.erb
103
+ - app/views/layouts/mcms/_head.html.erb
104
+ - app/views/layouts/mcms/main_layout.html.erb
105
+ - app/assets/images/mcms/logo_03.png
106
+ - app/assets/images/mcms/site_logo.png
107
+ - app/assets/images/mcms/favicon.ico
102
108
  - app/assets/javascripts/dashboard.js
103
109
  - app/assets/stylesheets/dashboard.css
104
110
  - app/controllers/dashboard_controller.rb
105
- - app/helpers/dashboard_helper.rb
106
111
  - config/routes.rb
107
- - lib/tasks/mcms_tasks.rake
108
112
  - lib/mcms.rb
109
113
  - lib/mcms/engine.rb
110
114
  - lib/mcms/version.rb
@@ -1,2 +0,0 @@
1
- module DashboardHelper
2
- end
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :mcms do
3
- # # Task goes here
4
- # end