jinda_adminlte 0.7.0.4 → 0.7.3

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
  SHA256:
3
- metadata.gz: 298d83ab002fa8f10060238e3b8455c3443729cc56159319437f3076d3a4aa48
4
- data.tar.gz: bda159496cbd1abda18dbe1d2bd6db23d8140af64db7ad5681513a52a527e50d
3
+ metadata.gz: ad69df95c4105ad99cd840e72a8b7f0ed9846e5e3e00af4cd293d7591a4973f7
4
+ data.tar.gz: 5c7e4516d444a5fe0a223c29acfa66993b85026a6ffc0ad50ddeb9debe1f9de4
5
5
  SHA512:
6
- metadata.gz: 3045c52b8174302a417dcdc66d333811be9b7e8d2085436b03ec8252fc29073e603590d681215387eaf5b073b7826e46847ecb3f3cb459480015e3c1ffb4d89b
7
- data.tar.gz: b0fe55b94c61d6abb21b3943b5e1e31f77b86121c1789d81ebd7bfe470637bc1cb5bf6b682ed55ffa15dfbaf401f67240d3c31792333e707fbd3ca9ddab820e5
6
+ metadata.gz: eed3a8fce4d89c6aa18aa8feeed4bd2c78969db8dad55e988bdd6b533bd4a12375563db3b76a7127c860c154ac07f648973d33257d857d2d0472a8bc0ce31352
7
+ data.tar.gz: 04e5634919801602eecb8c20e97ede6e8bc241da834d770574b6431625e6456c019c49dbbf088719d4070b1302c36d1f20f6ef648f92b398fa3f59c43f89045a
@@ -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
@@ -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,4 +1,4 @@
1
- // jinda.scss from theme jinda_adminlte
1
+ // jinda.scss from theme jinda_adminlte template directory
2
2
  #tooltip{
3
3
  position:absolute;
4
4
  border:1px solid #333;
@@ -59,7 +59,17 @@
59
59
  display: block;
60
60
 
61
61
  }
62
+ .row-description{
63
+ font-size: 12px;
64
+ }
62
65
 
66
+ .right-date{
67
+ font-size: 10px;
68
+ float: right;
69
+ }
70
+ .row-body{
71
+ font-size: 12px;
72
+ }
63
73
  #logreg-forms{
64
74
  width:412px;
65
75
  margin:10vh auto;
@@ -77,7 +87,7 @@ body {
77
87
  font-family: 'Roboto', sans-serif;
78
88
  }
79
89
  .form-control {
80
- font-size: 16px;
90
+ font-size: 12px;
81
91
  transition: all 0.4s;
82
92
  box-shadow: none;
83
93
  }
@@ -85,7 +95,7 @@ body {
85
95
  border-color: #5cb85c;
86
96
  }
87
97
  .form-control, .btn {
88
- border-radius: 50px;
98
+ border-radius: 10px;
89
99
  outline: none !important;
90
100
  }
91
101
  .form-group input {
@@ -183,3 +193,53 @@ body {
183
193
  margin: 3px 10px;
184
194
  font-size: 20px;
185
195
  }
196
+ .container{
197
+ margin: 5px;
198
+ }
199
+
200
+ /* Fixed Jinda_adminLTE .main-header .logo */
201
+ .main-header .logo {
202
+ height: 51px;
203
+ }
204
+
205
+ /* Fixed Jinda_adminLTE treemenu, Sign_in*/
206
+
207
+
208
+ @media (min-width: 768px) {
209
+
210
+ .sidebar-mini.sidebar-collapse .main-sidebar {
211
+ width: 40px !important;
212
+ }
213
+ .container{
214
+ width: 580px;
215
+ }
216
+ }
217
+
218
+ body {
219
+ margin: 0;
220
+ font-family: Arial, Helvetica, sans-serif;
221
+ line-height: 1.5;
222
+ }
223
+ .sidebar-menu {
224
+ text-align: left;
225
+ }
226
+
227
+ .inner ul {
228
+ list-style: none;
229
+ margin: 0;
230
+ padding: 0;
231
+ }
232
+ .form-group.form-control input{
233
+ background: transparent;
234
+ padding: 5px;
235
+ }
236
+
237
+ .form-group.form-control input[type=text]:focus {
238
+ background-color: transparent;
239
+ }
240
+
241
+ .display-addcomment{
242
+
243
+ float: left;
244
+ width: 450px;
245
+ }
@@ -1,3 +1,3 @@
1
1
  module JindaAdminlte
2
- VERSION = "0.7.0.4"
2
+ VERSION = "0.7.3"
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.4
4
+ version: 0.7.3
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-11 00:00:00.000000000 Z
11
+ date: 2021-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -334,16 +334,8 @@ 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
346
337
  - lib/generators/jinda_adminlte/templates/app/views/identities/new.html.haml
338
+ - lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_flash.haml
347
339
  - lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_footer.haml
348
340
  - lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_header.haml
349
341
  - lib/generators/jinda_adminlte/templates/app/views/layouts/lte/_menu.haml
@@ -378,7 +370,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
378
370
  - !ruby/object:Gem::Version
379
371
  version: '0'
380
372
  requirements: []
381
- rubygems_version: 3.2.3
373
+ rubygems_version: 3.1.2
382
374
  signing_key:
383
375
  specification_version: 4
384
376
  summary: Theme AdminLTE for Jinda
@@ -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 %>