dhatu 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +114 -0
- data/Rakefile +36 -0
- data/app/assets/config/dhatu_manifest.js +2 -0
- data/app/assets/javascripts/dhatu/application.js +13 -0
- data/app/assets/stylesheets/dhatu/application.css +15 -0
- data/app/controllers/dhatu/application_controller.rb +25 -0
- data/app/controllers/dhatu/blog_posts_controller.rb +84 -0
- data/app/controllers/dhatu/contact_informations_controller.rb +84 -0
- data/app/controllers/dhatu/dashboard_controller.rb +24 -0
- data/app/controllers/dhatu/events_controller.rb +84 -0
- data/app/controllers/dhatu/offers_controller.rb +84 -0
- data/app/controllers/dhatu/resource_controller.rb +13 -0
- data/app/controllers/dhatu/sections_controller.rb +83 -0
- data/app/controllers/dhatu/team_members_controller.rb +84 -0
- data/app/controllers/dhatu/testimonials_controller.rb +84 -0
- data/app/helpers/dhatu/application_helper.rb +4 -0
- data/app/jobs/dhatu/application_job.rb +4 -0
- data/app/mailers/dhatu/application_mailer.rb +6 -0
- data/app/models/dhatu/application_record.rb +8 -0
- data/app/models/dhatu/blog_post.rb +62 -0
- data/app/models/dhatu/contact_information.rb +88 -0
- data/app/models/dhatu/event.rb +56 -0
- data/app/models/dhatu/offer.rb +55 -0
- data/app/models/dhatu/section.rb +82 -0
- data/app/models/dhatu/team_member.rb +59 -0
- data/app/models/dhatu/testimonial.rb +57 -0
- data/app/views/dhatu/blog_posts/_form.html.erb +42 -0
- data/app/views/dhatu/blog_posts/_index.html.erb +58 -0
- data/app/views/dhatu/blog_posts/_row.html.erb +28 -0
- data/app/views/dhatu/blog_posts/_show.html.erb +120 -0
- data/app/views/dhatu/blog_posts/index.html.erb +56 -0
- data/app/views/dhatu/contact_informations/_form.html.erb +104 -0
- data/app/views/dhatu/contact_informations/_index.html.erb +51 -0
- data/app/views/dhatu/contact_informations/_row.html.erb +26 -0
- data/app/views/dhatu/contact_informations/_show.html.erb +150 -0
- data/app/views/dhatu/contact_informations/index.html.erb +46 -0
- data/app/views/dhatu/dashboard/_index.html.erb +58 -0
- data/app/views/dhatu/dashboard/index.html.erb +18 -0
- data/app/views/dhatu/events/_form.html.erb +40 -0
- data/app/views/dhatu/events/_index.html.erb +58 -0
- data/app/views/dhatu/events/_row.html.erb +28 -0
- data/app/views/dhatu/events/_show.html.erb +120 -0
- data/app/views/dhatu/events/index.html.erb +45 -0
- data/app/views/dhatu/offers/_form.html.erb +39 -0
- data/app/views/dhatu/offers/_index.html.erb +57 -0
- data/app/views/dhatu/offers/_row.html.erb +28 -0
- data/app/views/dhatu/offers/_show.html.erb +118 -0
- data/app/views/dhatu/offers/index.html.erb +46 -0
- data/app/views/dhatu/sections/_form.html.erb +60 -0
- data/app/views/dhatu/sections/_index.html.erb +53 -0
- data/app/views/dhatu/sections/_row.html.erb +25 -0
- data/app/views/dhatu/sections/_show.html.erb +152 -0
- data/app/views/dhatu/sections/index.html.erb +53 -0
- data/app/views/dhatu/team_members/_form.html.erb +56 -0
- data/app/views/dhatu/team_members/_index.html.erb +62 -0
- data/app/views/dhatu/team_members/_row.html.erb +35 -0
- data/app/views/dhatu/team_members/_show.html.erb +93 -0
- data/app/views/dhatu/team_members/index.html.erb +46 -0
- data/app/views/dhatu/testimonials/_form.html.erb +36 -0
- data/app/views/dhatu/testimonials/_index.html.erb +64 -0
- data/app/views/dhatu/testimonials/_row.html.erb +36 -0
- data/app/views/dhatu/testimonials/_show.html.erb +133 -0
- data/app/views/dhatu/testimonials/index.html.erb +46 -0
- data/app/views/layouts/dhatu/application.html.erb +14 -0
- data/app/views/layouts/kuppayam/_footer.html.erb +25 -0
- data/app/views/layouts/kuppayam/_header.html.erb +43 -0
- data/app/views/layouts/kuppayam/_navbar.html.erb +55 -0
- data/app/views/layouts/kuppayam/_sidebar.html.erb +219 -0
- data/app/views/pattana/dashboard/_index.html.erb +35 -0
- data/config/routes.rb +63 -0
- data/db/master_data/features.csv +16 -0
- data/lib/dhatu.rb +5 -0
- data/lib/dhatu/engine.rb +31 -0
- data/lib/dhatu/factories.rb +7 -0
- data/lib/dhatu/version.rb +3 -0
- data/lib/tasks/dhatu/data.rake +91 -0
- data/lib/tasks/dhatu/master_data.rake +48 -0
- data/spec/dummy/spec/factories/blog_post.rb +48 -0
- data/spec/dummy/spec/factories/blog_post_cover_image.rb +13 -0
- data/spec/dummy/spec/factories/blog_post_gallery_image.rb +13 -0
- data/spec/dummy/spec/factories/contact_information.rb +63 -0
- data/spec/dummy/spec/factories/event.rb +46 -0
- data/spec/dummy/spec/factories/event_cover_image.rb +13 -0
- data/spec/dummy/spec/factories/event_gallery_image.rb +13 -0
- data/spec/dummy/spec/factories/offer.rb +43 -0
- data/spec/dummy/spec/factories/offer_cover_image.rb +13 -0
- data/spec/dummy/spec/factories/offer_gallery_image.rb +13 -0
- data/spec/dummy/spec/factories/section.rb +50 -0
- data/spec/dummy/spec/factories/section_cover_image.rb +13 -0
- data/spec/dummy/spec/factories/section_gallery_image.rb +13 -0
- data/spec/dummy/spec/factories/team_member.rb +47 -0
- data/spec/dummy/spec/factories/test.jpg +0 -0
- data/spec/dummy/spec/factories/testimonial.rb +44 -0
- metadata +520 -0
@@ -0,0 +1,46 @@
|
|
1
|
+
<div class="row">
|
2
|
+
|
3
|
+
<div class="col-md-12">
|
4
|
+
|
5
|
+
<ul class="nav nav-tabs nav-tabs-justified">
|
6
|
+
<% Dhatu::TeamMember::STATUS.each do |key, value| %>
|
7
|
+
<li class="<%= @status == value ? 'active' : '' %>">
|
8
|
+
<%= link_to team_members_path(st: value), "aria-expanded" => "#{ @status == value ? 'true' : 'false' }" do %>
|
9
|
+
<span class="visible-xs"><i class="fa-gift"></i></span>
|
10
|
+
<span class="hidden-xs"><%= key %></span>
|
11
|
+
<% end %>
|
12
|
+
</li>
|
13
|
+
<% end %>
|
14
|
+
</ul>
|
15
|
+
|
16
|
+
<div class="tab-content">
|
17
|
+
<div class="tab-pane active">
|
18
|
+
|
19
|
+
<div id="div_team_member_action_buttons">
|
20
|
+
|
21
|
+
<div class="row">
|
22
|
+
<div class="col-sm-6">
|
23
|
+
<%= theme_button('Add a Team Member', 'plus', new_team_member_path(), classes: "pull-left mr-10", btn_type: "success") if @current_user.has_create_permission?(Dhatu::TeamMember) %>
|
24
|
+
|
25
|
+
<%= theme_button('Refresh', 'refresh', team_members_path(st: @status), classes: "pull-left mr-10", btn_type: "white") %>
|
26
|
+
</div>
|
27
|
+
<div class="col-sm-6">
|
28
|
+
<%= search_form_kuppayam(Dhatu::TeamMember, team_members_path(st: @status), text: @filters[:query]) %>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
</div>
|
33
|
+
<%= clear_tag(10) %>
|
34
|
+
|
35
|
+
<div id="div_team_member_index">
|
36
|
+
<%= render :partial=>"dhatu/team_members/index" %>
|
37
|
+
</div>
|
38
|
+
<%= clear_tag(10) %>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<%= form_for(@testimonial,
|
2
|
+
:url => (@testimonial.new_record? ? dhatu.testimonials_path : testimonial_path),
|
3
|
+
:method => (@testimonial.new_record? ? :post : :put),
|
4
|
+
:remote => true,
|
5
|
+
:html => {:id=>"form_testimonial", :class=>"mb-0 form-horizontal"}) do |f| %>
|
6
|
+
|
7
|
+
<div id="testimonial_form_error">
|
8
|
+
<%= @testimonial.errors[:base].to_sentence %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="form-inputs m-15">
|
12
|
+
|
13
|
+
<!-- Name (string) -->
|
14
|
+
<%= theme_form_field(@testimonial, :name, form_style: "top-bottom", html_options: { placeholder: "Dr. Alexander Grahambell"}) -%>
|
15
|
+
|
16
|
+
<!-- Designation (string) -->
|
17
|
+
<%= theme_form_field(@testimonial, :designation, form_style: "top-bottom", html_options: { placeholder: "Vice President"}) -%>
|
18
|
+
|
19
|
+
<!-- Organisation (string) -->
|
20
|
+
<%= theme_form_field(@testimonial, :organisation, form_style: "top-bottom", html_options: { placeholder: "ABC Oil Corporation"}) -%>
|
21
|
+
|
22
|
+
<!-- Statement (text) -->
|
23
|
+
<%= theme_form_field(@testimonial, :statement, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") -%>
|
24
|
+
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div>
|
28
|
+
<%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
|
29
|
+
|
30
|
+
<%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<%= clear_tag %>
|
34
|
+
|
35
|
+
<% end %>
|
36
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
<div class="table-responsive">
|
2
|
+
<table class="table table-hover members-table middle-align">
|
3
|
+
<thead>
|
4
|
+
<tr>
|
5
|
+
<th style="text-align: center;width:5%">#</th>
|
6
|
+
<th style="text-align: center;width:100px"><i class="fa fa-photo"></i></th>
|
7
|
+
<th>Name</th>
|
8
|
+
<th style="width:100px;" class="hidden-sm hidden-xs">Status</th>
|
9
|
+
<% if display_manage_links? %>
|
10
|
+
<th style="text-align: center;" colspan="2" class="hidden-sm hidden-xs">Actions</th>
|
11
|
+
<% end %>
|
12
|
+
</tr>
|
13
|
+
</thead>
|
14
|
+
<tbody>
|
15
|
+
<tr id="tr_testimonial_0"></tr>
|
16
|
+
<% @testimonials.each_with_index do |testimonial, i| %>
|
17
|
+
|
18
|
+
<tr id="tr_testimonial_<%= testimonial.id %>">
|
19
|
+
|
20
|
+
<th scope="row" style="text-align: center;">
|
21
|
+
<%= serial_number(i) %>
|
22
|
+
</th>
|
23
|
+
|
24
|
+
<td class="display-image">
|
25
|
+
<%= display_thumbnail_small(
|
26
|
+
testimonial,
|
27
|
+
method_name: "profile_image.image.small.url",
|
28
|
+
image_class: "img-circle",
|
29
|
+
image_width: "80",
|
30
|
+
image_height: "80") %>
|
31
|
+
</td>
|
32
|
+
|
33
|
+
<td class="display-link">
|
34
|
+
<%= link_to testimonial.name, testimonial_path(testimonial), remote: true, style: "color: darkgreen;font-size:16px;" %><br>
|
35
|
+
<%= testimonial.designation %><br>
|
36
|
+
<%= testimonial.organisation %><br>
|
37
|
+
</td>
|
38
|
+
|
39
|
+
<td class="hidden-sm hidden-xs">
|
40
|
+
<%= display_publishable_status(testimonial) %>
|
41
|
+
<%= display_featured(testimonial) %>
|
42
|
+
</td>
|
43
|
+
|
44
|
+
<% if display_manage_links? %>
|
45
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(testimonial) %></td>
|
46
|
+
|
47
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%">
|
48
|
+
<%= display_featurable_links(testimonial) %>
|
49
|
+
<%= display_manage_links(testimonial, @current_user) %>
|
50
|
+
</td>
|
51
|
+
<% end %>
|
52
|
+
|
53
|
+
</tr>
|
54
|
+
|
55
|
+
<% end %>
|
56
|
+
</tbody>
|
57
|
+
</table>
|
58
|
+
</div>
|
59
|
+
|
60
|
+
<div class="row">
|
61
|
+
<div class="col-sm-12">
|
62
|
+
<%= paginate_kuppayam(@testimonials) %>
|
63
|
+
</div>
|
64
|
+
</div>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<tr id="tr_testimonial_<%= testimonial.id %>">
|
2
|
+
|
3
|
+
<th scope="row" style="text-align: center;">
|
4
|
+
<%= serial_number(i) %>
|
5
|
+
</th>
|
6
|
+
|
7
|
+
<td class="display-image">
|
8
|
+
<%= display_thumbnail_small(
|
9
|
+
testimonial,
|
10
|
+
method_name: "profile_image.image.small.url",
|
11
|
+
image_class: "img-circle",
|
12
|
+
image_width: "80",
|
13
|
+
image_height: "80") %>
|
14
|
+
</td>
|
15
|
+
|
16
|
+
<td class="display-link">
|
17
|
+
<%= link_to testimonial.name, testimonial_path(testimonial), remote: true, style: "color: darkgreen;font-size:16px;" %><br>
|
18
|
+
<%= testimonial.designation %><br>
|
19
|
+
<%= testimonial.organisation %><br>
|
20
|
+
</td>
|
21
|
+
|
22
|
+
<td class="hidden-sm hidden-xs">
|
23
|
+
<%= display_publishable_status(testimonial) %>
|
24
|
+
<%= display_featured(testimonial) %>
|
25
|
+
</td>
|
26
|
+
|
27
|
+
<% if display_manage_links? %>
|
28
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(testimonial) %></td>
|
29
|
+
|
30
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%">
|
31
|
+
<%= display_featurable_links(testimonial) %>
|
32
|
+
<%= display_manage_links(testimonial, @current_user) %>
|
33
|
+
</td>
|
34
|
+
<% end %>
|
35
|
+
|
36
|
+
</tr>
|
@@ -0,0 +1,133 @@
|
|
1
|
+
<div id="div_testimonial_show">
|
2
|
+
|
3
|
+
<div class="row">
|
4
|
+
|
5
|
+
<div class="col-md-3 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
6
|
+
<% if display_edit_links? %>
|
7
|
+
<%= edit_image(@testimonial,
|
8
|
+
"profile_image.image.large.url",
|
9
|
+
upload_image_link(@testimonial, :profile_image, nil ),
|
10
|
+
remove_image_link(@testimonial, :profile_image, nil ),
|
11
|
+
image_options: {assoc_name: :profile_image, class: "img-circle img-inline userpic-32", width: "200", height: "200" }) %>
|
12
|
+
<% else %>
|
13
|
+
<%= display_image(@testimonial, "profile_image.image.large.url", class: "img-inline", alt: @testimonial.display_name) %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="col-md-6 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
18
|
+
|
19
|
+
<%= theme_panel_heading(@testimonial.display_name) %>
|
20
|
+
|
21
|
+
<%= theme_panel_sub_heading(@testimonial.designation, "#") if @testimonial.designation %>
|
22
|
+
|
23
|
+
<%= theme_panel_sub_heading(@testimonial.organisation, "#") if @testimonial.organisation %>
|
24
|
+
|
25
|
+
<%= clear_tag(10) %>
|
26
|
+
|
27
|
+
<%= display_publishable_status(@testimonial) %>
|
28
|
+
|
29
|
+
<%= display_featured(@testimonial) %>
|
30
|
+
|
31
|
+
<%= clear_tag(20) %>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<% if display_manage_links? %>
|
35
|
+
<div class="col-md-3 col-sm-12 col-xs-12">
|
36
|
+
<%= display_manage_buttons(@testimonial) %>
|
37
|
+
<%= display_publishable_buttons(@testimonial) %>
|
38
|
+
<%= display_featurable_buttons(@testimonial) %>
|
39
|
+
</div>
|
40
|
+
<% end %>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<hr>
|
45
|
+
|
46
|
+
<div class="visible-sm visible-xs mb-50"></div>
|
47
|
+
|
48
|
+
<%= clear_tag(20) %>
|
49
|
+
|
50
|
+
<ul class="nav nav-pills">
|
51
|
+
<li class="active">
|
52
|
+
<a href="#testimonial_details" data-toggle="tab" aria-expanded="false">
|
53
|
+
<span class="visible-xs"><i class="fa-database"></i></span>
|
54
|
+
<span class="hidden-xs">Testimonial Details</span>
|
55
|
+
</a>
|
56
|
+
</li>
|
57
|
+
|
58
|
+
<li class="">
|
59
|
+
<a href="#organisation_logo" data-toggle="tab" aria-expanded="false">
|
60
|
+
<span class="visible-xs"><i class="fa-database"></i></span>
|
61
|
+
<span class="hidden-xs">Organisation Logo</span>
|
62
|
+
</a>
|
63
|
+
</li>
|
64
|
+
|
65
|
+
<li class="">
|
66
|
+
<a href="#technical_details" data-toggle="tab" aria-expanded="false">
|
67
|
+
<span class="visible-xs"><i class="fa-database"></i></span>
|
68
|
+
<span class="hidden-xs">Technical Details</span>
|
69
|
+
</a>
|
70
|
+
</li>
|
71
|
+
|
72
|
+
</ul>
|
73
|
+
|
74
|
+
<div class="tab-content">
|
75
|
+
<div class="tab-pane active" id="testimonial_details" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
|
76
|
+
|
77
|
+
<%= clear_tag(20) %>
|
78
|
+
<%= raw(@testimonial.statement) %>
|
79
|
+
<%= clear_tag(20) %>
|
80
|
+
|
81
|
+
|
82
|
+
</div>
|
83
|
+
|
84
|
+
<div class="tab-pane" id="organisation_logo" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
|
85
|
+
|
86
|
+
<div class="row">
|
87
|
+
<div class="col-md-3 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
88
|
+
<%= clear_tag(20) %>
|
89
|
+
<%= edit_image(@testimonial,
|
90
|
+
"logo_image.image.large.url",
|
91
|
+
upload_image_link(@testimonial, :logo_image, nil ),
|
92
|
+
remove_image_link(@testimonial, :logo_image, nil ),
|
93
|
+
image_options: {assoc_name: :logo_image }) %>
|
94
|
+
<%= clear_tag(20) %>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
<div class="tab-pane" id="technical_details" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
|
102
|
+
|
103
|
+
<%= clear_tag(20) %>
|
104
|
+
|
105
|
+
<div class="table-responsive">
|
106
|
+
<table class="table table-striped table-condensed table-bordered mb-60">
|
107
|
+
<tbody>
|
108
|
+
|
109
|
+
<tr>
|
110
|
+
<th>ID</th><td><%= @testimonial.id %></td>
|
111
|
+
<th>Permalink</th><td><%= @testimonial.to_param %></td>
|
112
|
+
</tr>
|
113
|
+
<tr>
|
114
|
+
<th>Featured</th><td><%= @testimonial.featured %></td>
|
115
|
+
<th>Status</th><td><%= @testimonial.status %></td>
|
116
|
+
</tr>
|
117
|
+
<tr>
|
118
|
+
<th>Created At</th><td><%= @testimonial.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @testimonial.created_at %></td>
|
119
|
+
<th>Updated At</th><td><%= @testimonial.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @testimonial.updated_at %></td>
|
120
|
+
</tr>
|
121
|
+
|
122
|
+
</tbody>
|
123
|
+
</table>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
|
129
|
+
<%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
|
130
|
+
|
131
|
+
<%= clear_tag %>
|
132
|
+
|
133
|
+
</div>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<div class="row">
|
2
|
+
|
3
|
+
<div class="col-md-12">
|
4
|
+
|
5
|
+
<ul class="nav nav-tabs nav-tabs-justified">
|
6
|
+
<% Dhatu::Testimonial::STATUS.each do |key, value| %>
|
7
|
+
<li class="<%= @status == value ? 'active' : '' %>">
|
8
|
+
<%= link_to testimonials_path(st: value), "aria-expanded" => "#{ @status == value ? 'true' : 'false' }" do %>
|
9
|
+
<span class="visible-xs"><i class="fa-gift"></i></span>
|
10
|
+
<span class="hidden-xs"><%= key %></span>
|
11
|
+
<% end %>
|
12
|
+
</li>
|
13
|
+
<% end %>
|
14
|
+
</ul>
|
15
|
+
|
16
|
+
<div class="tab-content">
|
17
|
+
<div class="tab-pane active">
|
18
|
+
|
19
|
+
<div id="div_testimonial_action_buttons">
|
20
|
+
|
21
|
+
<div class="row">
|
22
|
+
<div class="col-sm-6">
|
23
|
+
<%= theme_button('Add a Testimonial', 'plus', new_testimonial_path(), classes: "pull-left mr-10", btn_type: "success") if @current_user.has_create_permission?(Dhatu::Testimonial) %>
|
24
|
+
|
25
|
+
<%= theme_button('Refresh', 'refresh', testimonials_path(st: @status), classes: "pull-left mr-10", btn_type: "white") %>
|
26
|
+
</div>
|
27
|
+
<div class="col-sm-6">
|
28
|
+
<%= search_form_kuppayam(Dhatu::Offer, testimonials_path(st: @status), text: @filters[:query]) %>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
</div>
|
33
|
+
<%= clear_tag(10) %>
|
34
|
+
|
35
|
+
<div id="div_testimonial_index">
|
36
|
+
<%= render :partial=>"dhatu/testimonials/index" %>
|
37
|
+
</div>
|
38
|
+
<%= clear_tag(10) %>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dhatu</title>
|
5
|
+
<%= stylesheet_link_tag "dhatu/application", media: "all" %>
|
6
|
+
<%= javascript_include_tag "dhatu/application" %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<footer class="main-footer sticky footer-type-1">
|
2
|
+
|
3
|
+
<div class="footer-inner">
|
4
|
+
|
5
|
+
<!-- Add your copyright text here -->
|
6
|
+
<div class="footer-text">
|
7
|
+
© 2017
|
8
|
+
<strong>SBIDU</strong>
|
9
|
+
|
10
|
+
All rights reserved. <br>developed, maintained and hosted by <a href="http://rightsolutions.io" target="_blank" style="color:red">Right Solutions</a>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
|
14
|
+
<!-- Go to Top Link, just add rel="go-top" to any link to add this functionality -->
|
15
|
+
<div class="go-up">
|
16
|
+
|
17
|
+
<a href="#" rel="go-top">
|
18
|
+
<i class="fa-angle-up"></i>
|
19
|
+
</a>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
|
23
|
+
</div>
|
24
|
+
|
25
|
+
</footer>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<div class="top-bar">
|
2
|
+
<div class="top-bar-left">
|
3
|
+
<ul class="dropdown menu" data-dropdown-menu>
|
4
|
+
<li class="menu-text">SBIDU</li>
|
5
|
+
<li>
|
6
|
+
<a href="#">One</a>
|
7
|
+
<ul class="menu vertical">
|
8
|
+
<li><a href="#">One</a></li>
|
9
|
+
<li><a href="#">Two</a></li>
|
10
|
+
<li><a href="#">Three</a></li>
|
11
|
+
</ul>
|
12
|
+
</li>
|
13
|
+
<li><a href="#">Two</a></li>
|
14
|
+
<li><a href="#">Three</a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
<div class="top-bar-right">
|
18
|
+
<ul class="menu">
|
19
|
+
<li><input type="search" placeholder="Search"></li>
|
20
|
+
<li><button type="button" class="button">Search</button></li>
|
21
|
+
</ul>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<div class="header mb-40">
|
26
|
+
|
27
|
+
<div class="visible-xs pull-left mt-10">
|
28
|
+
<a href="#menu-toggle" class="btn btn-default" id="menu-toggle"><i class="fa fa-list"></i></a>
|
29
|
+
<%#= theme_button('', 'list', "#menu-toggle", btn_type: "default", id: "menu-toggle", classes: "") %>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<div class="pull-right mt-10">
|
33
|
+
<% if @current_user %>
|
34
|
+
<span style="color:#898989;">Welcome</span> <span style="color:#4b4b4b;"><%= @current_user.name %></span>
|
35
|
+
|
|
36
|
+
<%= link_to raw("Sign Out"), usman.sign_out_path, method: :delete %>
|
37
|
+
<% else %>
|
38
|
+
<%= link_to raw("Sign In"), "#" %>
|
39
|
+
<% end %>
|
40
|
+
</div>
|
41
|
+
<div class="cl-10"></div>
|
42
|
+
</div>
|
43
|
+
|