college_admin 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45e54fc4c532fe330d954c56b0a20a8730f88c37
4
- data.tar.gz: 4b697dde5645764f010858dc0c7ad9a5094dd7d6
3
+ metadata.gz: 491be4b1a8991566f37fedf0b3c4b8884f3b873c
4
+ data.tar.gz: e48a41631f7fdabfcc7ae6f125f2f11737bbce65
5
5
  SHA512:
6
- metadata.gz: ff15683c1e5cfc4fe7626affd00dc4d757d46b9009b475acb1a203929a110da89186b65f5f755637e052dbfd2b309d4c372294e0fd38840dc2f4a2c0029309f9
7
- data.tar.gz: 2a74eb53d1299e11207293c5b8c84b53d0369ff0bc3b22b5cb2fc2349566e0421d28485985254cc463d61a0db887ec4867ebf759d447ffc70d5881c52572961e
6
+ metadata.gz: ce4f922085efc1325d9ce945250efe05e60d67289c1049a5737e17ef94d5293cf1366dfba191f6c6305a1783e5fa18319fc866a95963943164b1d660f51bff94
7
+ data.tar.gz: 04ab9ea2a6eb754e70aa6e33180c1d3673a9d5e093e2bee8cd9e255f0cf2db306e065a211cd2f856d745584771ea5023c3a864700a4972c84218606b7801eb1c
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .idea/
11
+ college_admin-0.1.0.gem
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # College Admin Theme Engine
1
+ # College Admin Theme [![Gem Version](https://badge.fury.io/rb/college_admin.svg)](https://badge.fury.io/rb/college_admin)
2
2
 
3
3
  Welcome to College Admin theme. It is theme engine for making rails. It renders an administrator theme in your project.
4
4
 
@@ -195,6 +195,46 @@ given bellow code:
195
195
  ```
196
196
 
197
197
 
198
+ <h5>For adding footer:</h5>
199
+
200
+ Step 1:
201
+
202
+ Make a file named `_footer.html.erb` in your `app->views->shared` folder.
203
+ Write down this code in your `_footer.html.erb`:
204
+
205
+ ```
206
+ <% content_for :footer do %>
207
+ <footer class="footer text-right">
208
+ <div class="container">
209
+ <div class="row">
210
+ <div class="col-xs-6">
211
+ <%= Time.now.year %> &copy; Admin
212
+ </div>
213
+ </div>
214
+ </div>
215
+ </footer>
216
+ <% end %>
217
+
218
+ ```
219
+
220
+ Step 2:
221
+
222
+ Make file named `_extends_admin_layout.html.erb` in your `app->views->shared` folder.
223
+ Then, write down this code in your `_extends_admin_layout.html.erb`
224
+
225
+ ```
226
+ <%= render partial: 'shared/footer' %>
227
+ ```
228
+
229
+ Step 3:
230
+
231
+ Now, open in your all admin view files as example as `index.html.erb`, `edit.html.erb`, `show.html.erb` and `new.html.erb`, then write down
232
+ given bellow code:
233
+
234
+ ```
235
+ <%= render 'shared/extends_admin_layout' %>
236
+ ```
237
+
198
238
 
199
239
 
200
240
 
@@ -9,7 +9,7 @@
9
9
  <div class="container">
10
10
  <%= yield %>
11
11
  <!-- Footer -->
12
- <%= render 'layouts/footer' %>
12
+ <%= yield :footer %>
13
13
  <!-- End Footer -->
14
14
  </div>
15
15
  </div>
@@ -1,3 +1,3 @@
1
1
  module CollegeAdmin
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: college_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hasan Mohammad Tanbir
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-19 00:00:00.000000000 Z
11
+ date: 2017-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -90,7 +90,6 @@ files:
90
90
  - app/assets/javascripts/jquery.core.js
91
91
  - app/assets/javascripts/jquery.dashboard.js
92
92
  - app/assets/stylesheets/style.css
93
- - app/views/layouts/_footer.html.erb
94
93
  - app/views/layouts/_head.html.erb
95
94
  - app/views/layouts/_header.html.erb
96
95
  - app/views/layouts/_js.html.erb
@@ -1,10 +0,0 @@
1
- <footer class="footer text-right">
2
- <div class="container">
3
- <div class="row">
4
- <div class="col-xs-6">
5
- <%= Time.now.year %> &copy; Admin
6
- </div>
7
- </div>
8
- </div>
9
- </footer>
10
-