tkh_admin_panel 0.9 → 0.9.1

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
  SHA1:
3
- metadata.gz: 071b11d6b70864794bd0c3ea25079c8c8f67640a
4
- data.tar.gz: 4e5dd81a409188f6fdb5561a2fe7b5d627b08543
3
+ metadata.gz: 41a5b729ec9b54174b0e901206585c145cd638b4
4
+ data.tar.gz: c142883ae68794f7199adbc6735f430957e89408
5
5
  SHA512:
6
- metadata.gz: 4037e6c6ddb95e590e84f09827623b63446d893c3398583d88dcc101c0363b29399026521ac71aa4e2dcb59d0d6fef600afb7bfa506af14c4a2a60f029ee0e6c
7
- data.tar.gz: d135f249559fbfa3dc02d8f4718b4f05e6bfc302e0a35b54c2901cf36090c47716086b2cffd369624ac57f70c0fa0bb03ff79cc8f9750eac454d8ea98b9a3a1e
6
+ metadata.gz: 96e56afffa13a061b45de21fe48b46ec727c39141a8001202ffb5f3870623841a9be36a8f570798e746c8e5af73eb7fb4d088f39c769c1bf2d2a0a4667d7f83a
7
+ data.tar.gz: 886822f919df8ea8cb6b952dfa8eec347ece3a6ee0ebfd21dec64e8473323918db01370c890d315bd39f1ebd5ebedae42801db5a038b5a6e6546653baab27c88
data/CHANGELOG.md CHANGED
@@ -1,7 +1,19 @@
1
- # TKH Admin Panel
1
+ # TKH Admin Panel
2
2
 
3
3
 
4
4
 
5
+ ## 0.9.1
6
+
7
+ * Resolving gem dependencies
8
+
9
+
10
+ ## 0.9
11
+
12
+ * Upgraded to Rails 4
13
+ * Gem is NOT backward compatible. Versions less than 0.9 should be used for Rails 3
14
+ * Upgraded Bootstrap and the United bootswatch
15
+
16
+
5
17
  ## 0.3.5
6
18
 
7
19
  * Cleaned up the settings form
data/README.md CHANGED
@@ -4,13 +4,17 @@ This is a Rails engine with an admin panel layout, assets and basic functionalit
4
4
 
5
5
  Primarily developed for Ten Thousand Hours but we are happy to share if anybody finds it useful. It's primarily developed to work in sync with the tkh_cms gem suite but over time more and more effort will be made to make it work in isolation.
6
6
 
7
- Please note that this gem is still in its infancy. I'm just getting started.
7
+ Please note that this gem is still in its infancy. I'm just getting started.
8
8
 
9
9
  ## Installation
10
10
 
11
- This gem was created when Rails 3.2.6 was the latest release and there is a railties dependency of "~> 3.2". Add this line to your application's Gemfile:
11
+ For use with Rails 3, add this line to your application's Gemfile:
12
12
 
13
- gem 'tkh_admin_panel', '~> 0.0'
13
+ gem 'tkh_admin_panel', '< 0.9'
14
+
15
+ For Rails 4 ...
16
+
17
+ gem 'tkh_admin_panel', '~> 0.9'
14
18
 
15
19
  And then execute:
16
20
 
@@ -19,9 +23,9 @@ And then execute:
19
23
  Install the admin_sidebar partial
20
24
 
21
25
  $ rake tkh_admin_panel:setup
22
-
26
+
23
27
  Run the migrations
24
-
28
+
25
29
  $ rake db:migrate
26
30
 
27
31
  Start or restart your server!
@@ -38,9 +42,9 @@ Update the gem:
38
42
  Update locale files.
39
43
 
40
44
  $ rake tkh_admin_panel:update
41
-
45
+
42
46
  Run new migrations if any
43
-
47
+
44
48
  $ rake db:migrate
45
49
 
46
50
  Start or restart your server!
@@ -0,0 +1,7 @@
1
+ jQuery ->
2
+ # Typeahead form field for autocomplete associations
3
+ $('#page_author_name').typeahead(
4
+ name: 'page_author_name',
5
+ local: $('#page_author_name').data('source') )
6
+
7
+
@@ -8,6 +8,7 @@
8
8
  //= require jquery.ui.all
9
9
  //= require jquery_ujs
10
10
  //= require bootstrap
11
+ //= require twitter/typeahead.min
11
12
  //= require ckeditor-jquery
12
- //= require custom
13
+ //= require admin/custom
13
14
  //= require pages
@@ -0,0 +1 @@
1
+ @import "bootstrap";
@@ -0,0 +1,146 @@
1
+ body {
2
+ margin-top: 45px;
3
+ @include hyphens;
4
+ }
5
+
6
+ input, textarea {
7
+ width: 450px;
8
+ }
9
+
10
+ h1, h2 {
11
+ text-align: center;
12
+ }
13
+
14
+ h2 {
15
+ &:first-of-type { margin-top: 0; }
16
+ }
17
+
18
+ form {
19
+ margin: 2em .5em;
20
+ }
21
+ input, textarea { width: auto; }
22
+ // .textarea-test { width: auto; height: auto; }
23
+
24
+ .form-group { margin: 0 0 2em; }
25
+ .form-control {
26
+ border: none;
27
+ height: auto;
28
+ }
29
+
30
+ .help-block { color: #999; }
31
+
32
+ // .form-horizontal input + .help-block, .form-horizontal select + .help-block, .form-horizontal textarea + .help-block, .form-horizontal .uneditable-input + .help-block, .form-horizontal .input-prepend + .help-block, .form-horizontal .input-append + .help-block {
33
+ // margin-top: 3px;
34
+ // }
35
+
36
+ .navbar-login-info { padding-right: 1.5em; }
37
+
38
+ #admin-menu-tab { margin-bottom: 3em; }
39
+
40
+ .list-group {
41
+ h3 {
42
+ color: darken(#fff, 30%);
43
+ font-size: 0.9em;
44
+ }
45
+ }
46
+ .list-group-item {
47
+ font-size: 0.9em;
48
+ padding: 5px 7px;
49
+
50
+ }
51
+ a.list-group-item { color: #dd4814; }
52
+
53
+ footer {
54
+ margin: 2em 1em .5em;
55
+ text-align: center;
56
+ }
57
+
58
+
59
+ .twitter-typeahead .tt-query,
60
+ .twitter-typeahead .tt-hint {
61
+ margin-bottom: 0;
62
+ }
63
+ .tt-hint {
64
+ display: block;
65
+ width: 100%;
66
+ height: 38px;
67
+ padding: 8px 12px;
68
+ font-size: 14px;
69
+ line-height: 1.428571429;
70
+ color: transparent; // This may render this whole section moot!?
71
+ vertical-align: middle;
72
+ background-color: #ffffff;
73
+ border: 1px solid #cccccc;
74
+ border-radius: 4px;
75
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
76
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
77
+ -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
78
+ transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
79
+ }
80
+ .tt-dropdown-menu {
81
+ color: #dd4814;
82
+ min-width: 160px;
83
+ margin-top: 2px;
84
+ padding: 5px 0;
85
+ background-color: #ffffff;
86
+ border: 1px solid #cccccc;
87
+ border: 1px solid rgba(0, 0, 0, 0.15);
88
+ border-radius: 4px;
89
+ -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
90
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
91
+ background-clip: padding-box;
92
+
93
+ }
94
+ .tt-suggestion {
95
+ display: block;
96
+ padding: 3px 20px;
97
+ }
98
+ .tt-suggestion.tt-is-under-cursor {
99
+ color: #fff;
100
+ background-color: #428bca;
101
+ }
102
+ .tt-suggestion.tt-is-under-cursor a {
103
+ color: #fff;
104
+ }
105
+ .tt-suggestion p {
106
+ margin: 0;
107
+ }
108
+
109
+ .pagination {
110
+ display: block;
111
+ padding: 0.2em;
112
+ text-align: center;
113
+ margin: 0 0 2.5em;
114
+ a { padding: 0 0.15em; }
115
+ .current { font-style: normal; }
116
+ .previous_page {
117
+ padding-right: 1.5em;
118
+ }
119
+ .next_page {
120
+ padding-left: 1.5em;
121
+ }
122
+ }
123
+
124
+ .thumbnail-gallery {
125
+ // Where we assign random pics to specific records
126
+ li {
127
+ display: inline;
128
+ float: left;
129
+ margin: 0.5em;
130
+ }
131
+ }
132
+
133
+ #sortable {
134
+ list-style-type: none;
135
+ margin: 2em 0 2em 4em;
136
+ li {
137
+ cursor: move;
138
+ margin: 1em 0;
139
+ }
140
+ }
141
+
142
+ .comment-body {
143
+ // fix this for Chrome. It work in FF
144
+ overflow-wrap: break-word;
145
+ word-wrap: break-word;
146
+ }