dhatu 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +114 -0
  4. data/Rakefile +36 -0
  5. data/app/assets/config/dhatu_manifest.js +2 -0
  6. data/app/assets/javascripts/dhatu/application.js +13 -0
  7. data/app/assets/stylesheets/dhatu/application.css +15 -0
  8. data/app/controllers/dhatu/application_controller.rb +25 -0
  9. data/app/controllers/dhatu/blog_posts_controller.rb +84 -0
  10. data/app/controllers/dhatu/contact_informations_controller.rb +84 -0
  11. data/app/controllers/dhatu/dashboard_controller.rb +24 -0
  12. data/app/controllers/dhatu/events_controller.rb +84 -0
  13. data/app/controllers/dhatu/offers_controller.rb +84 -0
  14. data/app/controllers/dhatu/resource_controller.rb +13 -0
  15. data/app/controllers/dhatu/sections_controller.rb +83 -0
  16. data/app/controllers/dhatu/team_members_controller.rb +84 -0
  17. data/app/controllers/dhatu/testimonials_controller.rb +84 -0
  18. data/app/helpers/dhatu/application_helper.rb +4 -0
  19. data/app/jobs/dhatu/application_job.rb +4 -0
  20. data/app/mailers/dhatu/application_mailer.rb +6 -0
  21. data/app/models/dhatu/application_record.rb +8 -0
  22. data/app/models/dhatu/blog_post.rb +62 -0
  23. data/app/models/dhatu/contact_information.rb +88 -0
  24. data/app/models/dhatu/event.rb +56 -0
  25. data/app/models/dhatu/offer.rb +55 -0
  26. data/app/models/dhatu/section.rb +82 -0
  27. data/app/models/dhatu/team_member.rb +59 -0
  28. data/app/models/dhatu/testimonial.rb +57 -0
  29. data/app/views/dhatu/blog_posts/_form.html.erb +42 -0
  30. data/app/views/dhatu/blog_posts/_index.html.erb +58 -0
  31. data/app/views/dhatu/blog_posts/_row.html.erb +28 -0
  32. data/app/views/dhatu/blog_posts/_show.html.erb +120 -0
  33. data/app/views/dhatu/blog_posts/index.html.erb +56 -0
  34. data/app/views/dhatu/contact_informations/_form.html.erb +104 -0
  35. data/app/views/dhatu/contact_informations/_index.html.erb +51 -0
  36. data/app/views/dhatu/contact_informations/_row.html.erb +26 -0
  37. data/app/views/dhatu/contact_informations/_show.html.erb +150 -0
  38. data/app/views/dhatu/contact_informations/index.html.erb +46 -0
  39. data/app/views/dhatu/dashboard/_index.html.erb +58 -0
  40. data/app/views/dhatu/dashboard/index.html.erb +18 -0
  41. data/app/views/dhatu/events/_form.html.erb +40 -0
  42. data/app/views/dhatu/events/_index.html.erb +58 -0
  43. data/app/views/dhatu/events/_row.html.erb +28 -0
  44. data/app/views/dhatu/events/_show.html.erb +120 -0
  45. data/app/views/dhatu/events/index.html.erb +45 -0
  46. data/app/views/dhatu/offers/_form.html.erb +39 -0
  47. data/app/views/dhatu/offers/_index.html.erb +57 -0
  48. data/app/views/dhatu/offers/_row.html.erb +28 -0
  49. data/app/views/dhatu/offers/_show.html.erb +118 -0
  50. data/app/views/dhatu/offers/index.html.erb +46 -0
  51. data/app/views/dhatu/sections/_form.html.erb +60 -0
  52. data/app/views/dhatu/sections/_index.html.erb +53 -0
  53. data/app/views/dhatu/sections/_row.html.erb +25 -0
  54. data/app/views/dhatu/sections/_show.html.erb +152 -0
  55. data/app/views/dhatu/sections/index.html.erb +53 -0
  56. data/app/views/dhatu/team_members/_form.html.erb +56 -0
  57. data/app/views/dhatu/team_members/_index.html.erb +62 -0
  58. data/app/views/dhatu/team_members/_row.html.erb +35 -0
  59. data/app/views/dhatu/team_members/_show.html.erb +93 -0
  60. data/app/views/dhatu/team_members/index.html.erb +46 -0
  61. data/app/views/dhatu/testimonials/_form.html.erb +36 -0
  62. data/app/views/dhatu/testimonials/_index.html.erb +64 -0
  63. data/app/views/dhatu/testimonials/_row.html.erb +36 -0
  64. data/app/views/dhatu/testimonials/_show.html.erb +133 -0
  65. data/app/views/dhatu/testimonials/index.html.erb +46 -0
  66. data/app/views/layouts/dhatu/application.html.erb +14 -0
  67. data/app/views/layouts/kuppayam/_footer.html.erb +25 -0
  68. data/app/views/layouts/kuppayam/_header.html.erb +43 -0
  69. data/app/views/layouts/kuppayam/_navbar.html.erb +55 -0
  70. data/app/views/layouts/kuppayam/_sidebar.html.erb +219 -0
  71. data/app/views/pattana/dashboard/_index.html.erb +35 -0
  72. data/config/routes.rb +63 -0
  73. data/db/master_data/features.csv +16 -0
  74. data/lib/dhatu.rb +5 -0
  75. data/lib/dhatu/engine.rb +31 -0
  76. data/lib/dhatu/factories.rb +7 -0
  77. data/lib/dhatu/version.rb +3 -0
  78. data/lib/tasks/dhatu/data.rake +91 -0
  79. data/lib/tasks/dhatu/master_data.rake +48 -0
  80. data/spec/dummy/spec/factories/blog_post.rb +48 -0
  81. data/spec/dummy/spec/factories/blog_post_cover_image.rb +13 -0
  82. data/spec/dummy/spec/factories/blog_post_gallery_image.rb +13 -0
  83. data/spec/dummy/spec/factories/contact_information.rb +63 -0
  84. data/spec/dummy/spec/factories/event.rb +46 -0
  85. data/spec/dummy/spec/factories/event_cover_image.rb +13 -0
  86. data/spec/dummy/spec/factories/event_gallery_image.rb +13 -0
  87. data/spec/dummy/spec/factories/offer.rb +43 -0
  88. data/spec/dummy/spec/factories/offer_cover_image.rb +13 -0
  89. data/spec/dummy/spec/factories/offer_gallery_image.rb +13 -0
  90. data/spec/dummy/spec/factories/section.rb +50 -0
  91. data/spec/dummy/spec/factories/section_cover_image.rb +13 -0
  92. data/spec/dummy/spec/factories/section_gallery_image.rb +13 -0
  93. data/spec/dummy/spec/factories/team_member.rb +47 -0
  94. data/spec/dummy/spec/factories/test.jpg +0 -0
  95. data/spec/dummy/spec/factories/testimonial.rb +44 -0
  96. metadata +520 -0
@@ -0,0 +1,58 @@
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>Title</th>
8
+ <th class="hidden-md hidden-sm hidden-xs">Author</th>
9
+ <th style="width:100px;" class="hidden-sm hidden-xs">Featured</th>
10
+ <th style="width:100px;" class="hidden-sm hidden-xs">Status</th>
11
+ <% if display_manage_links? %>
12
+ <th style="text-align: center;" colspan="2" class="hidden-sm hidden-xs">Actions</th>
13
+ <% end %>
14
+ </tr>
15
+ </thead>
16
+ <tbody>
17
+ <tr id="tr_blog_post_0"></tr>
18
+ <% @blog_posts.each_with_index do |blog_post, i| %>
19
+
20
+ <tr id="tr_blog_post_<%= blog_post.id %>">
21
+
22
+ <th scope="row" style="text-align: center;">
23
+ <%= serial_number(i) %>
24
+ </th>
25
+
26
+ <td class="display-image">
27
+ <%= display_thumbnail_small(blog_post) %>
28
+ </td>
29
+
30
+ <td class="display-link"><%= link_to blog_post.title, blog_post_path(blog_post), remote: true %></td>
31
+
32
+ <td class="display-link hidden-md hidden-sm hidden-xs"><%= blog_post.author %></td>
33
+
34
+ <td class="hidden-sm hidden-xs"><%= display_featured(blog_post) %></td>
35
+
36
+ <td class="hidden-sm hidden-xs"><%= display_publishable_status(blog_post) %></td>
37
+
38
+ <% if display_manage_links? %>
39
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(blog_post) %></td>
40
+
41
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
42
+ <%= display_featurable_links(blog_post) %>
43
+ <%= display_manage_links(blog_post, @current_user) %>
44
+ </td>
45
+ <% end %>
46
+
47
+ </tr>
48
+
49
+ <% end %>
50
+ </tbody>
51
+ </table>
52
+ </div>
53
+
54
+ <div class="row">
55
+ <div class="col-sm-12">
56
+ <%= paginate_kuppayam(@blog_posts) %>
57
+ </div>
58
+ </div>
@@ -0,0 +1,28 @@
1
+ <tr id="tr_blog_post_<%= blog_post.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(blog_post) %>
9
+ </td>
10
+
11
+ <td class="blog_post-name"><%= link_to blog_post.title, blog_post_path(blog_post), remote: true %></td>
12
+
13
+ <td class="blog_post-name hidden-md hidden-sm hidden-xs"><%= blog_post.author %></td>
14
+
15
+ <td class="hidden-sm hidden-xs"><%= display_featured(blog_post) %></td>
16
+
17
+ <td class="hidden-sm hidden-xs"><%= display_publishable_status(blog_post) %></td>
18
+
19
+ <% if display_manage_links? %>
20
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(blog_post) %></td>
21
+
22
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
23
+ <%= display_featurable_links(blog_post) %>
24
+ <%= display_manage_links(blog_post, @current_user) %>
25
+ </td>
26
+ <% end %>
27
+
28
+ </tr>
@@ -0,0 +1,120 @@
1
+ <div id="div_blog_post_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(@blog_post,
8
+ "cover_image.image.large.url",
9
+ upload_image_link(@blog_post, :cover_image, nil ),
10
+ remove_image_link(@blog_post, :cover_image, nil ),
11
+ image_options: {assoc_name: :cover_image }) %>
12
+ <% else %>
13
+ <%= display_image(@blog_post, "cover_image.image.large.url", class: "img-inline", alt: @blog_post.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(@blog_post.title) %>
20
+
21
+ <%= theme_panel_sub_heading(@blog_post.author, "#") if @blog_post.author %>
22
+
23
+ <%= clear_tag(10) %>
24
+
25
+ <%= display_publishable_status(@blog_post) %>
26
+
27
+ <%= display_featured(@blog_post) %>
28
+
29
+ <%= clear_tag(20) %>
30
+
31
+ <div class="table-responsive">
32
+ <table class="table table-striped table-condensed table-bordered">
33
+ <tbody>
34
+
35
+ <tr>
36
+ <th style="width:25%">Posted At</th>
37
+ <td style="width:25%"><%= time_tag(@blog_post.posted_at) if @blog_post.posted_at %></td>
38
+ <th style="width:25%">Slug</th>
39
+ <td style="width:25%"><%= @blog_post.slug %></td>
40
+ </tr>
41
+
42
+ <tr>
43
+ <th style="width:25%">Slug</th>
44
+ <td style="width:25%" colspan="3"><%= @blog_post.slug %></td>
45
+ </tr>
46
+
47
+ </tbody>
48
+ </table>
49
+ </div>
50
+ </div>
51
+
52
+ <% if display_manage_links? %>
53
+ <div class="col-md-3 col-sm-12 col-xs-12">
54
+ <%= display_manage_buttons(@blog_post) %>
55
+ <%= display_publishable_buttons(@blog_post) %>
56
+ <%= display_featurable_buttons(@blog_post) %>
57
+ </div>
58
+ <% end %>
59
+
60
+ </div>
61
+
62
+ <%= clear_tag(20) %>
63
+
64
+ <ul class="nav nav-pills">
65
+ <li class="active">
66
+ <a href="#blog_post_details" data-toggle="tab" aria-expanded="true">
67
+ <span class="visible-xs"><i class="fa-info"></i></span>
68
+ <span class="hidden-xs">Blog Details</span>
69
+ </a>
70
+ </li>
71
+ <li class="">
72
+ <a href="#technical_details" data-toggle="tab" aria-expanded="false">
73
+ <span class="visible-xs"><i class="fa-database"></i></span>
74
+ <span class="hidden-xs">Technical Details</span>
75
+ </a>
76
+ </li>
77
+ </ul>
78
+
79
+ <div class="tab-content">
80
+ <div class="tab-pane active" id="blog_post_details" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
81
+
82
+ <%= clear_tag(20) %>
83
+ <%= raw(@blog_post.description) %>
84
+ <%= clear_tag(20) %>
85
+
86
+ </div>
87
+
88
+ <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;">
89
+
90
+ <%= clear_tag(20) %>
91
+
92
+ <div class="table-responsive">
93
+ <table class="table table-striped table-condensed table-bordered mb-60">
94
+ <tbody>
95
+
96
+ <tr>
97
+ <th>ID</th><td><%= @blog_post.id %></td>
98
+ <th>Permalink</th><td><%= @blog_post.to_param %></td>
99
+ </tr>
100
+ <tr>
101
+ <th>Featured</th><td><%= @blog_post.featured %></td>
102
+ <th>Status</th><td><%= @blog_post.status %></td>
103
+ </tr>
104
+ <tr>
105
+ <th>Created At</th><td><%= @blog_post.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @blog_post.created_at %></td>
106
+ <th>Updated At</th><td><%= @blog_post.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @blog_post.updated_at %></td>
107
+ </tr>
108
+
109
+ </tbody>
110
+ </table>
111
+ </div>
112
+
113
+ </div>
114
+ </div>
115
+
116
+ <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
117
+
118
+ <%= clear_tag %>
119
+
120
+ </div>
@@ -0,0 +1,56 @@
1
+ <div class="row">
2
+
3
+ <div class="col-md-12">
4
+
5
+ <ul class="nav nav-tabs nav-tabs-justified">
6
+ <% Dhatu::BlogPost::STATUS.each do |key, value| %>
7
+ <li class="<%= @status == value ? 'active' : '' %>">
8
+ <%= link_to blog_posts_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
+ <div class="tab-content">
16
+ <div class="tab-pane active">
17
+
18
+ <div id="div_blog_post_action_buttons">
19
+
20
+ <div class="row">
21
+ <div class="col-sm-6">
22
+ <%= theme_button('Add a Blog Post', 'plus', new_blog_post_path(), classes: "pull-left", btn_type: "success") if @current_user.has_create_permission?(Dhatu::BlogPost) %>
23
+
24
+ <%= theme_button('Refresh', 'refresh', blog_posts_path(st: @status), classes: "pull-left ml-10", btn_type: "white") %>
25
+ </div>
26
+ <div class="col-sm-6">
27
+ <%= search_form_kuppayam(Dhatu::BlogPost, blog_posts_path, text: @filters[:query]) %>
28
+ </div>
29
+ </div>
30
+
31
+ </div>
32
+ <%= clear_tag(10) %>
33
+
34
+ <div id="div_blog_post_index">
35
+ <%= render :partial=>"dhatu/blog_posts/index" %>
36
+ </div>
37
+ <%= clear_tag(10) %>
38
+
39
+ </div>
40
+ </div>
41
+
42
+ </div>
43
+
44
+ </div>
45
+
46
+ <script type="text/javascript">
47
+ $('body').on('change', '#inp_title', function() {
48
+ var blogPostId = $('#inp_slug').data("id");
49
+ if(blogPostId){
50
+ } else {
51
+ var slug = convertToSlug($(this).val()).slice(0, 63);
52
+ $('#inp_slug').val(slug);
53
+ }
54
+ });
55
+ </script>
56
+
@@ -0,0 +1,104 @@
1
+ <%= form_for(@contact_information,
2
+ :url => (@contact_information.new_record? ? dhatu.contact_informations_path : contact_information_path),
3
+ :method => (@contact_information.new_record? ? :post : :put),
4
+ :remote => true,
5
+ :html => {:id=>"form_contact_info", :class=>"mb-0 form-horizontal"}) do |f| %>
6
+
7
+ <div id="contact_information_form_error">
8
+ <%= @contact_information.errors[:base].to_sentence %>
9
+ </div>
10
+
11
+ <div class="form-inputs m-15">
12
+
13
+ <!-- Title (string) -->
14
+ <%= theme_form_field(@contact_information, :title, form_style: "top-bottom", html_options: { placeholder: ""}) -%>
15
+
16
+ <div class="row">
17
+ <div class="col-md-4 pr-20">
18
+ <!-- Address 1 (string) -->
19
+ <%= theme_form_field(@contact_information, :address_1, form_style: "top-bottom", required: false, html_options: { placeholder: ""}) -%>
20
+ </div>
21
+ <div class="col-md-4 pr-20">
22
+ <!-- Address 1 (string) -->
23
+ <%= theme_form_field(@contact_information, :address_2, form_style: "top-bottom", required: false, html_options: { placeholder: ""}) -%>
24
+ </div>
25
+ <div class="col-md-4 pr-20">
26
+ <!-- Address 1 (string) -->
27
+ <%= theme_form_field(@contact_information, :address_3, form_style: "top-bottom", required: false, html_options: { placeholder: ""}) -%>
28
+ </div>
29
+ </div>
30
+
31
+ <div class="row">
32
+ <div class="col-md-3 pr-20">
33
+ <!-- Email (string) -->
34
+ <%= theme_form_field(@contact_information, :email, form_style: "top-bottom", required: false, html_options: { type: :email, placeholder: "name@domain.com"}) -%>
35
+ </div>
36
+ <div class="col-md-3 pr-20">
37
+ <!-- Landline (string) -->
38
+ <%= theme_form_field(@contact_information, :landline, form_style: "top-bottom", required: false, html_options: { type: :tel, placeholder: ""}) -%>
39
+ </div>
40
+ <div class="col-md-3 pr-20">
41
+ <!-- Fax (string) -->
42
+ <%= theme_form_field(@contact_information, :fax, form_style: "top-bottom", required: false, html_options: { placeholder: ""}) -%>
43
+ </div>
44
+ <div class="col-md-3 pr-20">
45
+ <!-- Mobile (string) -->
46
+ <%= theme_form_field(@contact_information, :mobile, form_style: "top-bottom", required: false, html_options: { type: :tel, placeholder: ""}) -%>
47
+ </div>
48
+ </div>
49
+
50
+ <div class="row">
51
+ <div class="col-md-4 pr-20">
52
+ <!-- Facebook (string) -->
53
+ <%= theme_form_field(@contact_information, :facebook, form_style: "top-bottom", required: false, html_options: { placeholder: "https://"}) -%>
54
+ </div>
55
+ <div class="col-md-4 pr-20">
56
+ <!-- Twitter (string) -->
57
+ <%= theme_form_field(@contact_information, :twitter, form_style: "top-bottom", required: false, html_options: { placeholder: "https://"}) -%>
58
+ </div>
59
+ <div class="col-md-4 pr-20">
60
+ <!-- Google Plus (string) -->
61
+ <%= theme_form_field(@contact_information, :google_plus, form_style: "top-bottom", required: false, html_options: { placeholder: "https://"}) -%>
62
+ </div>
63
+ </div>
64
+
65
+ <div class="row">
66
+ <div class="col-md-4 pr-20">
67
+ <!-- Linked In (string) -->
68
+ <%= theme_form_field(@contact_information, :linked_in, form_style: "top-bottom", required: false, html_options: { placeholder: "https://"}) -%>
69
+ </div>
70
+ <div class="col-md-4 pr-20">
71
+ <!-- Youtube (string) -->
72
+ <%= theme_form_field(@contact_information, :youtube, form_style: "top-bottom", required: false, html_options: { placeholder: "https://"}) -%>
73
+ </div>
74
+ <div class="col-md-4 pr-20">
75
+ <!-- Instagram (string) -->
76
+ <%= theme_form_field(@contact_information, :instagram, form_style: "top-bottom", required: false, html_options: { placeholder: "https://"}) -%>
77
+ </div>
78
+ </div>
79
+
80
+ <div class="row">
81
+ <div class="col-md-4 pr-20">
82
+ <!-- Tumblr (string) -->
83
+ <%= theme_form_field(@contact_information, :tumblr, form_style: "top-bottom", required: false, html_options: { placeholder: "https://"}) -%>
84
+ </div>
85
+ <div class="col-md-4 pr-20">
86
+ <!-- Pinterest (string) -->
87
+ <%= theme_form_field(@contact_information, :pinterest, form_style: "top-bottom", required: false, html_options: { placeholder: "https://"}) -%>
88
+ </div>
89
+ <div class="col-md-4 pr-20">
90
+ <!-- Blog (string) -->
91
+ <%= theme_form_field(@contact_information, :blog, form_style: "top-bottom", required: false, html_options: { placeholder: "https://"}) -%>
92
+ </div>
93
+ </div>
94
+
95
+ <div class="row">
96
+ <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
97
+
98
+ <%= link_to raw("<i class='fa fa-close'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
99
+ </div>
100
+
101
+ <%= clear_tag %>
102
+
103
+ <% end %>
104
+
@@ -0,0 +1,51 @@
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>Title</th>
7
+ <th style="width:100px;" class="hidden-sm hidden-xs">Featured</th>
8
+ <th style="width:100px;" class="hidden-sm hidden-xs">Status</th>
9
+ <th style="text-align: center;" colspan="2" class="hidden-sm hidden-xs">Actions</th>
10
+ </tr>
11
+ </thead>
12
+ <tbody>
13
+ <tr id="tr_contact_information_0"></tr>
14
+ <% @contact_informations.each_with_index do |contact_information, i| %>
15
+
16
+ <tr id="tr_contact_information_<%= contact_information.id %>">
17
+
18
+ <th scope="row" style="text-align: center;">
19
+ <%= serial_number(i) %>
20
+ </th>
21
+
22
+ <td class="display-link">
23
+ <%= link_to contact_information.title, contact_information_path(contact_information), remote: true %>
24
+ <br>
25
+ <%= contact_information.display_address %>
26
+ </td>
27
+
28
+ <td class="hidden-sm hidden-xs"><%= display_featured(contact_information) %></td>
29
+
30
+ <td class="hidden-sm hidden-xs"><%= display_publishable_status(contact_information) %></td>
31
+
32
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(contact_information) %></td>
33
+
34
+ <% if display_manage_links? %>
35
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
36
+ <%= display_featurable_links(contact_information) %>
37
+ <%= display_manage_links(contact_information, @current_user) %>
38
+ </td>
39
+ <% end %>
40
+
41
+ </tr>
42
+ <% end %>
43
+ </tbody>
44
+ </table>
45
+ </div>
46
+
47
+ <div class="row">
48
+ <div class="col-sm-12">
49
+ <%= paginate_kuppayam(@contact_informations) %>
50
+ </div>
51
+ </div>
@@ -0,0 +1,26 @@
1
+ <tr id="tr_contact_information_<%= contact_information.id %>">
2
+
3
+ <th scope="row" style="text-align: center;">
4
+ <%= serial_number(i) %>
5
+ </th>
6
+
7
+ <td class="display-link">
8
+ <%= link_to contact_information.title, contact_information_path(contact_information), remote: true %>
9
+ <br>
10
+ <%= contact_information.display_address %>
11
+ </td>
12
+
13
+ <td class="hidden-sm hidden-xs"><%= display_featured(contact_information) %></td>
14
+
15
+ <td class="hidden-sm hidden-xs"><%= display_publishable_status(contact_information) %></td>
16
+
17
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(contact_information) %></td>
18
+
19
+ <% if display_manage_links? %>
20
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
21
+ <%= display_featurable_links(contact_information) %>
22
+ <%= display_manage_links(contact_information, @current_user) %>
23
+ </td>
24
+ <% end %>
25
+
26
+ </tr>