jinda_adminlte 0.7.0.1 → 0.7.5.1

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.
Files changed (19) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generators/jinda_adminlte/install_generator.rb +4 -0
  3. data/lib/generators/jinda_adminlte/templates/app/views/identities/new.html.haml +45 -0
  4. data/lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_flash.haml +9 -0
  5. data/lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_menu.haml +0 -10
  6. data/lib/generators/jinda_adminlte/templates/app/views/sessions/new.html.haml +35 -0
  7. data/lib/generators/jinda_adminlte/templates/application.haml +48 -36
  8. data/lib/generators/jinda_adminlte/templates/jinda.scss +204 -23
  9. data/lib/jinda_adminlte/version.rb +1 -1
  10. metadata +5 -11
  11. data/lib/generators/jinda_adminlte/templates/app/views/articles/edit.haml +0 -12
  12. data/lib/generators/jinda_adminlte/templates/app/views/articles/edit_article/edit_article.html.erb +0 -13
  13. data/lib/generators/jinda_adminlte/templates/app/views/articles/edit_article/select_article.html.erb +0 -12
  14. data/lib/generators/jinda_adminlte/templates/app/views/articles/index.haml +0 -23
  15. data/lib/generators/jinda_adminlte/templates/app/views/articles/my.haml +0 -55
  16. data/lib/generators/jinda_adminlte/templates/app/views/articles/new_article/form_article.html.erb +0 -15
  17. data/lib/generators/jinda_adminlte/templates/app/views/articles/show.html.haml +0 -24
  18. data/lib/generators/jinda_adminlte/templates/app/views/articles/xedit_article/edit_article.html.erb +0 -13
  19. data/lib/generators/jinda_adminlte/templates/app/views/articles/xedit_article/xedit_article.html.erb +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efd8feb416642ae1cc90ff814a95103fb50fee1b5072106fc9d9bdcad06d949e
4
- data.tar.gz: 04d6d9a89a90742285b25fd6efe98ce2bbf8295ec748aed2486048c6841a63a1
3
+ metadata.gz: 163c71505051dd179de2ccbd1f6de551f79cb70bcf662de1b2dd535f5c1d4f07
4
+ data.tar.gz: 14d12cd0778ad1a56e7422e989aa5f010f3c66c0a61d7dc729cb21d73cba9a7a
5
5
  SHA512:
6
- metadata.gz: 3e724af07f010e630d5566776f175df3117098b5af46d194921f67b55f828b5433304a229a31e3245b007566aa98cec4dec1119f298a8d102dd33662031d84a1
7
- data.tar.gz: 39750cb1a4e212215d100ab4d39835259656cdd91addd9d387e2f8869a8e84455081fcd3837bd2a7a2b8ed736976f216ac4dc3427dc96270202a0c330c86514e
6
+ metadata.gz: 78f42bfffbed1803c379f3448536c131d198caae0b676f9ddb0d16dc5195cbb6b3669d81ed3f2e0f12d2ad85408d5911362ff54c667f4e96cfb041c493ab5c9c
7
+ data.tar.gz: ac7506a6626365ed5d3fdbb697d293b0e93e783cd10f23da2b64b9be810c8dab805cb93690cb7926f4d4e59325ddad031c3d89cd16743a14c5246e68116eb980
@@ -9,11 +9,15 @@ module Jinda_adminlte
9
9
  def setup_app
10
10
  inside("app/views/layouts") { run "mv application.haml application.haml.bak" }
11
11
  inside("app/views/layouts") { run "mv lte lte.bak" }
12
+ inside("app/views/identities") { run "mv new.html.haml new-bak.html.haml" }
13
+ inside("app/views/sessions") { run "mv new.html.haml new-bak.html.haml" }
12
14
  inside("app/assets") { run "mv jinda_assets ../../tmp/cache" }
13
15
  inside("app/assets") { run "mv javascripts ../../tmp/cache" }
14
16
  inside("app/assets") { run "mv stylesheets ../../tmp/cache" }
15
17
  directory "app/views/adminltes"
16
18
  directory "app/views/layouts/lte"
19
+ directory "app/views/identities"
20
+ directory "app/views/sessions"
17
21
 
18
22
  end
19
23
 
@@ -0,0 +1,45 @@
1
+ .container
2
+ .signup-form
3
+ - @title= 'Sign Up'
4
+ = form_tag "/auth/identity/register", {'data-ajax'=>'false'} do
5
+ %h1.h3.mb-3.font-weight-normal{:style => "text-align: center"} Sign Up
6
+ %p.hint-text Sign Up with your social media account or Username
7
+ .social-btn.text-center
8
+ %a.btn.btn-primary.btn-lg{:href => "/auth/facebook"}
9
+ %i.fa.fa-facebook
10
+ Facebook
11
+ %a.btn.btn-info.btn-lg{:href => "#"}
12
+ %i.fa.fa-twitter
13
+ Twitter
14
+ %a.btn.btn-danger.btn-lg{:href => "/auth/google_oauth2"}
15
+ %i.fa.fa-google
16
+ Google
17
+ .or-seperator
18
+ %b or
19
+ .sign_in
20
+ .label-warning
21
+ = flash[:alert]
22
+ - if @identity && @identity.errors.any?
23
+ .error_messages
24
+ %h3
25
+ = pluralize(@identity.errors.count, "error")
26
+ prohibited this account from being saved:
27
+ %ul
28
+ - @identity.errors.full_messages.each do |msg|
29
+ %li= msg
30
+ .form-group.form-control
31
+ = label_tag :code, 'Username'
32
+ = text_field_tag :code, @identity.try(:code)
33
+ .form-group.form-control
34
+ = label_tag :email
35
+ = text_field_tag :email, @identity.try(:email)
36
+ .form-group.form-control
37
+ = label_tag :password, 'Password'
38
+ = password_field_tag :password
39
+ .form-group.form-control
40
+ = label_tag :password_confirmation, 'Confirm password'
41
+ = password_field_tag :password_confirmation
42
+ %button.btn.btn-success.btn-block.actions{:type => "submit"}
43
+ %i.fas.fa-sign-up-alt
44
+ Sign Up
45
+
@@ -0,0 +1,9 @@
1
+ .label-warning
2
+ #flashes
3
+ - if flash[:notice]
4
+ %p#flash_notice.messages.notice= flash[:notice]
5
+ = javascript_tag "$('#flash_notice').effect('highlight',{},1000);"
6
+ - if flash[:error] || flash[:errors]
7
+ %p#flash_errors.messages.errors= flash[:error] || flash[:errors]
8
+ = javascript_tag "$('#flash_errors').effect('highlight',{},1000);"
9
+ - flash[:error] = flash[:errors] = flash[:notice] = nil
@@ -33,16 +33,6 @@
33
33
  Sign Up
34
34
  %li
35
35
  = link_to "Refresh", "#", :onclick=>"window.location.replace('/')"
36
- - if !login?
37
- %li
38
- %a{:href => '/auth/facebook', "data-panel" => "main", rel: "external"}
39
- %i.fa.fa-facebook
40
- %span
41
- Sign-in with facebook
42
- %li
43
- %a{:href => '/auth/google_oauth2', "data-panel" => "main", rel: "external"}
44
- %i.fa.fa-google
45
- Sign-in with Google+
46
36
 
47
37
 
48
38
 
@@ -0,0 +1,35 @@
1
+ .container
2
+ .signup-form
3
+ = form_tag "/auth/identity/callback", {'data-ajax'=>'false'} do
4
+ %h1.h3.mb-3.font-weight-normal{:style => "text-align: center"} Sign in
5
+ %p.hint-text Sign in with your social media account or Username
6
+ .social-btn.text-center
7
+ %a.btn.btn-primary.btn-lg{:href => "/auth/facebook"}
8
+ %i.fa.fa-facebook
9
+ Facebook
10
+ %a.btn.btn-info.btn-lg{:href => "#"}
11
+ %i.fa.fa-twitter
12
+ Twitter
13
+ %a.btn.btn-danger.btn-lg{:href => "/auth/google_oauth2"}
14
+ %i.fa.fa-google
15
+ Google
16
+ .or-seperator
17
+ %b or
18
+ .sign_in
19
+ .label-warning
20
+ = flash[:alert]
21
+ .form-group.form-control
22
+ = label_tag :auth_key, "User name"
23
+ = text_field_tag :auth_key
24
+ .form-group.form-control
25
+ = label_tag :password, "Password"
26
+ = password_field_tag :password
27
+ .form-group
28
+ = label_tag :remember_me
29
+ = check_box_tag :remember_me, 1, params.permit[:remember_me]
30
+ %button.btn.btn-success.btn-block.actions{:type => "submit"}
31
+ %i.fas.fa-sign-in-alt
32
+ Sign in
33
+ = link_to 'Forgotten password?', new_password_reset_path, data: {icon: 'info', mini: 'true', role: 'button'}
34
+ %hr/
35
+
@@ -1,39 +1,51 @@
1
1
  %html
2
- %head
3
- %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
4
- = csrf_meta_tags
5
- /%link{:href => "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic", :rel => "stylesheet"}/
6
- %title Jinda AdminLTE 2 | Starter
7
- = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
8
- = javascript_include_tag "application", 'data-turbolinks-track': 'reload'
9
- /
10
- BODY TAG OPTIONS:
11
- \=================
12
- Apply one or more of the following classes to get the
13
- desired effect
14
- |---------------------------------------------------------|
15
- | SKINS | skin-blue |
16
- | | skin-black |
17
- | | skin-purple |
18
- | | skin-yellow |
19
- | | skin-red |
20
- | | skin-green |
21
- |---------------------------------------------------------|
22
- |LAYOUT OPTIONS | fixed |
23
- | | layout-boxed |
24
- | | layout-top-nav |
25
- | | sidebar-collapse |
26
- | | sidebar-mini |
27
- |---------------------------------------------------------|
2
+ %head
3
+ %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
4
+ = csrf_meta_tags
5
+ /%link{:href => "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic", :rel => "stylesheet"}/
6
+ %title Jinda AdminLTE 2 | Starter
7
+ = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
8
+ = javascript_include_tag "application", 'data-turbolinks-track': 'reload'
9
+ /
10
+ BODY TAG OPTIONS:
11
+ \=================
12
+ Apply one or more of the following classes to get the
13
+ desired effect
14
+ |---------------------------------------------------------|
15
+ | SKINS | skin-blue |
16
+ | | skin-black |
17
+ | | skin-purple |
18
+ | | skin-yellow |
19
+ | | skin-red |
20
+ | | skin-green |
21
+ |---------------------------------------------------------|
22
+ |LAYOUT OPTIONS | fixed |
23
+ | | layout-boxed |
24
+ | | layout-top-nav |
25
+ | | sidebar-collapse |
26
+ | | sidebar-mini |
27
+ |---------------------------------------------------------|
28
28
 
29
- %body.hold-transition.skin-yellow.sidebar-mini
30
- .wrapper
31
- = render "layouts/lte/header"
32
- = render "layouts/lte/sidebar"
33
- .content-wrapper
34
- = yield
35
- = render 'layouts/lte/footer'
36
- .control-sidebar-bg
37
- / REQUIRED JS SCRIPTS
38
- / jQuery 3
29
+ %body.hold-transition.skin-yellow.sidebar-mini
30
+ .wrapper
31
+ = render "layouts/lte/header"
32
+ = render "layouts/lte/sidebar"
33
+ .content-wrapper
34
+ %h3.box-title
35
+ = @page_title
36
+ = render 'layouts/lte/flash'
37
+ .label-warning
38
+ #flashes
39
+ - if flash[:notice]
40
+ %p#flash_notice.messages.notice= flash[:notice]
41
+ = javascript_tag "$('#flash_notice').effect('highlight',{},1000);"
42
+ - if flash[:error] || flash[:errors]
43
+ %p#flash_errors.messages.errors= flash[:error] || flash[:errors]
44
+ = javascript_tag "$('#flash_errors').effect('highlight',{},1000);"
45
+ - flash[:error] = flash[:errors] = flash[:notice] = nil
46
+ = yield
47
+ = render 'layouts/lte/footer'
48
+ .control-sidebar-bg
49
+ / REQUIRED JS SCRIPTS
50
+ / jQuery 3
39
51
 
@@ -1,14 +1,15 @@
1
- #tooltip{
2
- position:absolute;
3
- border:1px solid #333;
4
- background:#f7f5d1;
5
- padding:2px 5px;
6
- color:#333;
7
- display:none;
1
+ // jinda.scss from theme jinda_adminlte template directory
2
+ #tooltip {
3
+ position: absolute;
4
+ border: 1px solid #333;
5
+ background: #f7f5d1;
6
+ padding: 2px 5px;
7
+ color: #333;
8
+ display: none;
8
9
  }
9
10
  #notice {
10
- color: #F90609;
11
- background-color: #EBD1D1;
11
+ color: #f90609;
12
+ background-color: #ebd1d1;
12
13
  font-weight: bolder;
13
14
  padding-left: 10px;
14
15
  }
@@ -24,9 +25,9 @@
24
25
  color: white;
25
26
  width: 80px;
26
27
  height: 80px;
27
- background:url(images/button_blue.png) no-repeat;
28
+ background: url(images/button_blue.png) no-repeat;
28
29
  display: table-cell;
29
- text-align:center;
30
+ text-align: center;
30
31
  }
31
32
  .step_now {
32
33
  font-size: 40px;
@@ -35,9 +36,9 @@
35
36
  color: white;
36
37
  width: 80px;
37
38
  height: 80px;
38
- background:url(images/button_red.png) no-repeat;
39
+ background: url(images/button_red.png) no-repeat;
39
40
  display: table-cell;
40
- text-align:center;
41
+ text-align: center;
41
42
  }
42
43
  .steps_done {
43
44
  font-size: 40px;
@@ -46,9 +47,9 @@
46
47
  color: white;
47
48
  width: 80px;
48
49
  height: 80px;
49
- background:url(images/button_black.png) no-repeat;
50
+ background: url(images/button_black.png) no-repeat;
50
51
  display: table-cell;
51
- text-align:center;
52
+ text-align: center;
52
53
  }
53
54
  .sign_in {
54
55
  width: 100%;
@@ -56,17 +57,197 @@
56
57
  padding: 15px;
57
58
  margin: auto;
58
59
  display: block;
59
-
60
+ }
61
+ .row-description {
62
+ font-size: 12px;
60
63
  }
61
64
 
62
- #logreg-forms{
63
- width:412px;
64
- margin:10vh auto;
65
- background-color:#f3f3f3;
66
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
67
- transition: all 0.3s cubic-bezier(.25,.8,.25,1);
65
+ .right-date {
66
+ font-size: 10px;
67
+ float: right;
68
+ }
69
+ .row-body {
70
+ font-size: 12px;
71
+ }
72
+ #logreg-forms {
73
+ width: 412px;
74
+ margin: 10vh auto;
75
+ background-color: #f3f3f3;
76
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
77
+ transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
68
78
  }
69
79
 
70
- .module-table{
80
+ .module-table {
71
81
  display: grid;
72
82
  }
83
+
84
+ .module-table textarea {
85
+ height: 200px;
86
+ }
87
+
88
+ body {
89
+ background: #dfe7e9;
90
+ font-family: "Roboto", sans-serif;
91
+ }
92
+ .form-control {
93
+ font-size: 12px;
94
+ transition: all 0.4s;
95
+ box-shadow: none;
96
+ }
97
+ .form-control:focus {
98
+ border-color: #5cb85c;
99
+ }
100
+ .form-control,
101
+ .btn {
102
+ border-radius: 10px;
103
+ outline: none !important;
104
+ }
105
+ .form-group input {
106
+ border-width: 0px;
107
+ }
108
+ .signup-form {
109
+ width: 480px;
110
+ margin: 0 auto;
111
+ padding: 30px 0;
112
+ }
113
+ .signup-form form {
114
+ border-radius: 5px;
115
+ margin-bottom: 20px;
116
+ background: #fff;
117
+ box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
118
+ padding: 40px;
119
+ }
120
+ .signup-form a {
121
+ color: #5cb85c;
122
+ }
123
+ .signup-form h2 {
124
+ text-align: center;
125
+ font-size: 34px;
126
+ margin: 10px 0 15px;
127
+ }
128
+ .signup-form .hint-text {
129
+ color: #999;
130
+ text-align: center;
131
+ margin-bottom: 20px;
132
+ }
133
+ .signup-form .form-group {
134
+ margin-bottom: 20px;
135
+ }
136
+ .signup-form .btn {
137
+ font-size: 18px;
138
+ line-height: 26px;
139
+ font-weight: bold;
140
+ text-align: center;
141
+ }
142
+ .signup-btn {
143
+ text-align: center;
144
+ border-color: #5cb85c;
145
+ transition: all 0.4s;
146
+ }
147
+ .signup-btn:hover {
148
+ background: #5cb85c;
149
+ opacity: 0.8;
150
+ }
151
+ .or-seperator {
152
+ margin: 50px 0 15px;
153
+ text-align: center;
154
+ border-top: 1px solid #e0e0e0;
155
+ }
156
+ .or-seperator b {
157
+ padding: 0 10px;
158
+ width: 40px;
159
+ height: 40px;
160
+ font-size: 16px;
161
+ text-align: center;
162
+ line-height: 40px;
163
+ background: #fff;
164
+ display: inline-block;
165
+ border: 1px solid #e0e0e0;
166
+ border-radius: 50%;
167
+ position: relative;
168
+ top: -22px;
169
+ z-index: 1;
170
+ }
171
+ .social-btn .btn {
172
+ color: #fff;
173
+ margin: 10px 0 0 15px;
174
+ font-size: 15px;
175
+ border-radius: 50px;
176
+ font-weight: normal;
177
+ border: none;
178
+ transition: all 0.4s;
179
+ }
180
+ .social-btn .btn:first-child {
181
+ margin-left: 0;
182
+ }
183
+ .social-btn .btn:hover {
184
+ opacity: 0.8;
185
+ }
186
+ .social-btn .btn-primary {
187
+ background: #507cc0;
188
+ }
189
+ .social-btn .btn-info {
190
+ background: #64ccf1;
191
+ }
192
+ .social-btn .btn-danger {
193
+ background: #df4930;
194
+ }
195
+ .social-btn .btn i {
196
+ float: left;
197
+ margin: 3px 10px;
198
+ font-size: 20px;
199
+ }
200
+ .container {
201
+ margin: 5px;
202
+ }
203
+
204
+ /* Fixed Jinda_adminLTE .main-header .logo */
205
+ .main-header .logo {
206
+ height: 51px;
207
+ }
208
+
209
+ /* Fixed Jinda_adminLTE treemenu, Sign_in*/
210
+
211
+ @media (min-width: 768px) {
212
+ .sidebar-mini.sidebar-collapse .main-sidebar {
213
+ width: 40px !important;
214
+ }
215
+ .container {
216
+ width: 580px;
217
+ }
218
+ }
219
+
220
+ body {
221
+ margin: 0;
222
+ font-family: Arial, Helvetica, sans-serif;
223
+ line-height: 1.5;
224
+ }
225
+ .sidebar-menu {
226
+ text-align: left;
227
+ }
228
+
229
+ .inner ul {
230
+ list-style: none;
231
+ margin: 0;
232
+ padding: 0;
233
+ }
234
+ .form-group.form-control input {
235
+ background: transparent;
236
+ padding: 5px;
237
+ }
238
+
239
+ .form-group.form-control input[type="text"]:focus {
240
+ background-color: transparent;
241
+ }
242
+
243
+ .display-addcomment {
244
+ float: left;
245
+ width: 450px;
246
+ }
247
+
248
+ .img-circle {
249
+ max-width: 45px;
250
+ }
251
+ .comment-user-image {
252
+ max-width: 45px;
253
+ }
@@ -1,3 +1,3 @@
1
1
  module JindaAdminlte
2
- VERSION = "0.7.0.1"
2
+ VERSION = "0.7.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jinda_adminlte
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.1
4
+ version: 0.7.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prateep Kul
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-06 00:00:00.000000000 Z
11
+ date: 2021-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -334,21 +334,15 @@ files:
334
334
  - lib/generators/jinda_adminlte/templates/app/controllers/adminltes_controller.rb
335
335
  - lib/generators/jinda_adminlte/templates/app/views/adminltes/dashboard1.haml
336
336
  - lib/generators/jinda_adminlte/templates/app/views/adminltes/dashboard2.haml
337
- - lib/generators/jinda_adminlte/templates/app/views/articles/edit.haml
338
- - lib/generators/jinda_adminlte/templates/app/views/articles/edit_article/edit_article.html.erb
339
- - lib/generators/jinda_adminlte/templates/app/views/articles/edit_article/select_article.html.erb
340
- - lib/generators/jinda_adminlte/templates/app/views/articles/index.haml
341
- - lib/generators/jinda_adminlte/templates/app/views/articles/my.haml
342
- - lib/generators/jinda_adminlte/templates/app/views/articles/new_article/form_article.html.erb
343
- - lib/generators/jinda_adminlte/templates/app/views/articles/show.html.haml
344
- - lib/generators/jinda_adminlte/templates/app/views/articles/xedit_article/edit_article.html.erb
345
- - lib/generators/jinda_adminlte/templates/app/views/articles/xedit_article/xedit_article.html.erb
337
+ - lib/generators/jinda_adminlte/templates/app/views/identities/new.html.haml
338
+ - lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_flash.haml
346
339
  - lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_footer.haml
347
340
  - lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_header.haml
348
341
  - lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_menu.haml
349
342
  - lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_menu_mm.haml
350
343
  - lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_rightbar.haml
351
344
  - lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_sidebar.haml
345
+ - lib/generators/jinda_adminlte/templates/app/views/sessions/new.html.haml
352
346
  - lib/generators/jinda_adminlte/templates/application.haml
353
347
  - lib/generators/jinda_adminlte/templates/application.js
354
348
  - lib/generators/jinda_adminlte/templates/application.scss
@@ -1,12 +0,0 @@
1
-
2
- %h1= @article.title
3
- %h1= title 'Member Login'
4
- .content= @article.text
5
- %div= markdown(@article.body)
6
-
7
- = form_for @article, url: "/jinda/init?s=articles:edit_article" do |f|
8
- = f.label :title, "Title"
9
- = f.text_field :title
10
- = f.label :body, "Body Content"
11
- = f.cktext_area :body, rows: 10
12
- = f.submit
@@ -1,13 +0,0 @@
1
- <%
2
- article = Article.find_by :id=> $xvars["select_article"]["title"]
3
- %>
4
- <%= fields_for article do |f| %>
5
- <%= f.label :title, "Title" %>
6
- <%= f.text_field :title %>
7
- <%= f.label :text, "Text" %>
8
- <%= f.text_field :text %>
9
- <%= f.label :text, "Keywords" %>
10
- <%= f.text_field :keywords %>
11
- <%= f.label :body, "Body Content" %>
12
- <%= f.cktext_area :body %>
13
- <% end %>
@@ -1,12 +0,0 @@
1
- <%
2
- if current_ma_user.role.upcase.split(',').include?("A")
3
- article = Article.all.desc(:created_at)
4
- else
5
- article = Article.where(user: current_ma_user).desc(:created_at)
6
- end
7
- %>
8
- <div class="field" data-role="fieldcontain">
9
- <%= label_tag :title, 'Article title' %>
10
- <%= select_tag :title, options_from_collection_for_select(article, :id, :title), "data-native-menu"=>"false" %>
11
- </div>
12
-
@@ -1,23 +0,0 @@
1
- - @title= "All Articles"
2
- = paginate @articles
3
- %table{:id=>"pending-table", :width=>"100%"}
4
- %tr{:style=>"color:black; background-color:#97BF60;"}
5
- %th User
6
- %th Title
7
- %th Description
8
- %th Created
9
- %th Updated
10
- %th Delete
11
- - @articles.each do |article|
12
- %tr
13
- %td= article.user.code if article.user
14
- %td= link_to article.title, :controller=>"articles", :action=>"show", :id=>article.id
15
- %td= article.text
16
- %td= article.created_at
17
- %td= article.updated_at
18
- %td(align='center')
19
- - next unless login?
20
- - unless current_ma_user.role.upcase.split(',').include?("A")
21
- - next unless article.user
22
- - next unless current_ma_user == article.user
23
- = link_to image_tag('delete.png', style:'border:none; float:none;'), "#", :onclick=>"if (confirm('Please Confirm')) {location.hash='/articles/destroy/#{article.id}';}"
@@ -1,55 +0,0 @@
1
- %section.content
2
- %h1
3
- - @title= "My Articles"
4
- - @page_title = 'All Articlces'
5
- = paginate @articles
6
- .row
7
- .col-md-8
8
- .box.box-success
9
- .box-header.with-border
10
- %i.fa.fa-comments-o
11
- %h3.box-title
12
- = @page_title
13
- = paginate @articles
14
-
15
- .box-tools.pull-right{"data-toggle" => "tooltip", :title => "Status"}
16
- .btn-group{"data-toggle" => "btn-toggle"}
17
- %button.btn.btn-default.btn-sm.active{:type => "button"}
18
- %i.fa.fa-square.text-green
19
- %button.btn.btn-default.btn-sm{:type => "button"}
20
- %i.fa.fa-square.text-red
21
- #chat-box.box-body.chat
22
- .table-responsive
23
- %table#article-table.table.no-margin
24
-
25
- %tbody
26
-
27
-
28
- - @articles.each do |article|
29
- %tr
30
- .item
31
- %img.online{:alt => "user image", :src => asset_url("dist/img/user4-128x128.jpg")}/
32
- %p.message
33
-
34
- %a.name{:href => "#"}
35
- %small.text-muted.pull-right
36
- = link_to image_tag('pencil.png', style:'border:none; float:none;'), {controller: "jinda", action: "init", s: 'articles:xedit_article', article_id: article.id}, data: { confirm: "Please Confirm" }
37
- = link_to image_tag('delete.png', style:'border:none; float:none;'), "#", :onclick=>"if (confirm('Please Confirm')) {location.hash='/articles/destroy/#{article.id}';}"
38
- %i.fa.fa-clock-o
39
- = article.created_at.strftime('%m/%d/%Y')
40
- Mike
41
-
42
- = link_to article.title, :controller=>"articles", :action=>"show", :id=>article.id
43
- .attachment
44
- %p.filename
45
- Theme-thumbnail-image.jpg
46
- = article.body.html_safe
47
- .pull-right
48
- %button.btn.btn-primary.btn-sm.btn-flat{:type => "button"} Open
49
-
50
-
51
-
52
- / /.box-body
53
- .box-footer.clearfix
54
-
55
-
@@ -1,15 +0,0 @@
1
- <div class="box box-info">
2
- <div class="box-header">
3
- <%- @title= 'New Article' %>
4
- <% article = @article %>
5
- <%= fields_for article do |f| %>
6
- <%= f.label :title, "Title" %>
7
- <%= f.text_field :title %>
8
- <%= f.label :text, "Description" %>
9
- <%= f.text_field :text %>
10
- <%= f.label :text, "Keywords" %>
11
- <%= f.text_field :keywords %>
12
- <%= f.cktext_area :body %>
13
- <% end %>
14
- </div>
15
- </div>
@@ -1,24 +0,0 @@
1
- - title @article.title
2
- - description @article.text
3
- - keywords @article.keywords
4
-
5
- %div{"data-role" => "menu_mm", "data-theme" => "b", "data-backbtn"=>"false"}
6
- #article-title= @article.title
7
-
8
- #article-text= @article.body.html_safe
9
-
10
- = link_to image_tag('pencil.png', style:'border:none; float:none;'), {controller: "jinda", action: "init", s: 'articles:xedit_article', article_id: @article.id}, data: { confirm: "Please Confirm" }
11
- - @comments.each do |comment|
12
- %div#article-comment.ui-corner-all
13
- Author:
14
- %b= comment.user.code if comment.user
15
- %div#comment-body
16
- %i= comment.body
17
-
18
- - if login?
19
- %h3 Add a comment:
20
- = form_for @article.comments.build, url: "/jinda/init?s=comments:new_comment" do |f|
21
- = f.hidden_field :article_id, :value => @article.id
22
- = f.label :body, "Comment"
23
- = f.text_area :body
24
- = f.submit
@@ -1,13 +0,0 @@
1
- <%
2
- article = Article.find_by :id=> $xvars["p"]["article_id"]
3
- %>
4
- <%= fields_for article do |f| %>
5
- <%= f.label :title, "Title" %>
6
- <%= f.text_field :title %>
7
- <%= f.label :text, "Description" %>
8
- <%= f.text_field :text %>
9
- <%= f.label :text, "Keywords" %>
10
- <%= f.text_field :keywords %>
11
- <%= f.label :body, "Body Content" %>
12
- <%= f.cktext_area :body %>
13
- <% end %>
@@ -1,11 +0,0 @@
1
- article = @article
2
- <%= fields_for article do |f| %>
3
- <%= f.label :title, "Title" %>
4
- <%= f.text_field :title %>
5
- <%= f.label :text, "About" %>
6
- <%= f.text_field :text %>
7
- <%= f.label :text, "Keywords" %>
8
- <%= f.text_field :keywords %>
9
- <%= f.label :body, "Body Content" %>
10
- <%= f.cktext_area :body %>
11
- <% end %>