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 +4 -4
- data/.gitignore +1 -0
- data/README.md +41 -1
- data/app/views/layouts/college_admin.erb +1 -1
- data/lib/college_admin/version.rb +1 -1
- metadata +2 -3
- data/app/views/layouts/_footer.html.erb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 491be4b1a8991566f37fedf0b3c4b8884f3b873c
|
4
|
+
data.tar.gz: e48a41631f7fdabfcc7ae6f125f2f11737bbce65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce4f922085efc1325d9ce945250efe05e60d67289c1049a5737e17ef94d5293cf1366dfba191f6c6305a1783e5fa18319fc866a95963943164b1d660f51bff94
|
7
|
+
data.tar.gz: 04ab9ea2a6eb754e70aa6e33180c1d3673a9d5e093e2bee8cd9e255f0cf2db306e065a211cd2f856d745584771ea5023c3a864700a4972c84218606b7801eb1c
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# College Admin Theme
|
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 %> © 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
|
|
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.
|
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:
|
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
|