tawork 0.0.17 → 0.0.18
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.
- checksums.yaml +8 -8
- data/Gemfile +1 -0
- data/Gemfile.lock +3 -0
- data/app/assets/javascripts/application.js +1 -0
- data/app/assets/javascripts/backbone/views/page.js.coffee +15 -1
- data/app/assets/stylesheets/application.css +1 -0
- data/app/assets/stylesheets/bootstrap_and_overrides.sass +9 -0
- data/app/controllers/wiki/pages_controller.rb +12 -0
- data/app/models/page.rb +3 -0
- data/app/views/wiki/pages/_display.html.haml +25 -1
- data/app/views/wiki/pages/_last_updated.html.haml +1 -1
- data/app/views/wiki/pages/_page_header.html.haml +7 -3
- data/app/views/wiki/pages/_tags.html.haml +2 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20140314014648_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +31 -0
- data/db/migrate/20140314014649_add_missing_unique_indices.acts_as_taggable_on_engine.rb +22 -0
- data/db/schema.rb +20 -2
- data/lib/tawork/version.rb +1 -1
- data/tags +28 -0
- data/vendor/assets/javascripts/bootstrap-tokenfield.js +1022 -0
- data/vendor/assets/stylesheets/bootstrap-tokenfield.css +209 -0
- data/vendor/assets/stylesheets/tokenfield-typeahead.css +141 -0
- metadata +7 -1
@@ -0,0 +1,209 @@
|
|
1
|
+
/*!
|
2
|
+
* bootstrap-tokenfield
|
3
|
+
* https://github.com/sliptree/bootstrap-tokenfield
|
4
|
+
* Copyright 2013-2014 Sliptree and other contributors; Licensed MIT
|
5
|
+
*/
|
6
|
+
@-webkit-keyframes 'blink' {
|
7
|
+
0% {
|
8
|
+
border-color: #ededed;
|
9
|
+
}
|
10
|
+
100% {
|
11
|
+
border-color: #b94a48;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
@-moz-keyframes 'blink' {
|
15
|
+
0% {
|
16
|
+
border-color: #ededed;
|
17
|
+
}
|
18
|
+
100% {
|
19
|
+
border-color: #b94a48;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
@keyframes 'blink' {
|
23
|
+
0% {
|
24
|
+
border-color: #ededed;
|
25
|
+
}
|
26
|
+
100% {
|
27
|
+
border-color: #b94a48;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
.tokenfield {
|
31
|
+
height: auto;
|
32
|
+
min-height: 34px;
|
33
|
+
padding-bottom: 0px;
|
34
|
+
}
|
35
|
+
.tokenfield.focus {
|
36
|
+
border-color: #66afe9;
|
37
|
+
outline: 0;
|
38
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);
|
39
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);
|
40
|
+
}
|
41
|
+
.tokenfield .token {
|
42
|
+
-webkit-box-sizing: border-box;
|
43
|
+
-moz-box-sizing: border-box;
|
44
|
+
box-sizing: border-box;
|
45
|
+
-webkit-border-radius: 3px;
|
46
|
+
-moz-border-radius: 3px;
|
47
|
+
border-radius: 3px;
|
48
|
+
display: inline-block;
|
49
|
+
border: 1px solid #d9d9d9;
|
50
|
+
background-color: #ededed;
|
51
|
+
white-space: nowrap;
|
52
|
+
margin: -1px 5px 5px 0;
|
53
|
+
height: 22px;
|
54
|
+
vertical-align: top;
|
55
|
+
cursor: default;
|
56
|
+
}
|
57
|
+
.tokenfield .token:hover {
|
58
|
+
border-color: #b9b9b9;
|
59
|
+
}
|
60
|
+
.tokenfield .token.active {
|
61
|
+
border-color: #52a8ec;
|
62
|
+
border-color: rgba(82, 168, 236, 0.8);
|
63
|
+
}
|
64
|
+
.tokenfield .token.duplicate {
|
65
|
+
border-color: #ebccd1;
|
66
|
+
-webkit-animation-name: blink;
|
67
|
+
animation-name: blink;
|
68
|
+
-webkit-animation-duration: 0.1s;
|
69
|
+
animation-duration: 0.1s;
|
70
|
+
-webkit-animation-direction: normal;
|
71
|
+
animation-direction: normal;
|
72
|
+
-webkit-animation-timing-function: ease;
|
73
|
+
animation-timing-function: ease;
|
74
|
+
-webkit-animation-iteration-count: infinite;
|
75
|
+
animation-iteration-count: infinite;
|
76
|
+
}
|
77
|
+
.tokenfield .token.invalid {
|
78
|
+
background: none;
|
79
|
+
border: 1px solid transparent;
|
80
|
+
-webkit-border-radius: 0;
|
81
|
+
-moz-border-radius: 0;
|
82
|
+
border-radius: 0;
|
83
|
+
border-bottom: 1px dotted #d9534f;
|
84
|
+
}
|
85
|
+
.tokenfield .token.invalid.active {
|
86
|
+
background: #ededed;
|
87
|
+
border: 1px solid #ededed;
|
88
|
+
-webkit-border-radius: 3px;
|
89
|
+
-moz-border-radius: 3px;
|
90
|
+
border-radius: 3px;
|
91
|
+
}
|
92
|
+
.tokenfield .token .token-label {
|
93
|
+
display: inline-block;
|
94
|
+
overflow: hidden;
|
95
|
+
text-overflow: ellipsis;
|
96
|
+
padding-left: 4px;
|
97
|
+
vertical-align: top;
|
98
|
+
}
|
99
|
+
.tokenfield .token .close {
|
100
|
+
font-family: Arial;
|
101
|
+
display: inline-block;
|
102
|
+
line-height: 100%;
|
103
|
+
font-size: 1.1em;
|
104
|
+
line-height: 1.49em;
|
105
|
+
margin-left: 5px;
|
106
|
+
float: none;
|
107
|
+
height: 100%;
|
108
|
+
vertical-align: top;
|
109
|
+
padding-right: 4px;
|
110
|
+
}
|
111
|
+
.tokenfield .token-input {
|
112
|
+
background: none;
|
113
|
+
width: 60px;
|
114
|
+
min-width: 60px;
|
115
|
+
border: 0;
|
116
|
+
height: 20px;
|
117
|
+
padding: 0;
|
118
|
+
margin-bottom: 6px;
|
119
|
+
-webkit-box-shadow: none;
|
120
|
+
box-shadow: none;
|
121
|
+
}
|
122
|
+
.tokenfield .token-input:focus {
|
123
|
+
border-color: transparent;
|
124
|
+
outline: 0;
|
125
|
+
/* IE6-9 */
|
126
|
+
-webkit-box-shadow: none;
|
127
|
+
box-shadow: none;
|
128
|
+
}
|
129
|
+
.tokenfield.disabled {
|
130
|
+
cursor: not-allowed;
|
131
|
+
background-color: #eeeeee;
|
132
|
+
}
|
133
|
+
.tokenfield.disabled .token-input {
|
134
|
+
cursor: not-allowed;
|
135
|
+
}
|
136
|
+
.tokenfield.disabled .token:hover {
|
137
|
+
cursor: not-allowed;
|
138
|
+
border-color: #d9d9d9;
|
139
|
+
}
|
140
|
+
.tokenfield.disabled .token:hover .close {
|
141
|
+
cursor: not-allowed;
|
142
|
+
opacity: 0.2;
|
143
|
+
filter: alpha(opacity=20);
|
144
|
+
}
|
145
|
+
.has-warning .tokenfield.focus {
|
146
|
+
border-color: #66512c;
|
147
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
|
148
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
|
149
|
+
}
|
150
|
+
.has-error .tokenfield.focus {
|
151
|
+
border-color: #843534;
|
152
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
|
153
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
|
154
|
+
}
|
155
|
+
.has-success .tokenfield.focus {
|
156
|
+
border-color: #2b542c;
|
157
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
|
158
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
|
159
|
+
}
|
160
|
+
.tokenfield.input-sm,
|
161
|
+
.input-group-sm .tokenfield {
|
162
|
+
min-height: 30px;
|
163
|
+
padding-bottom: 0px;
|
164
|
+
}
|
165
|
+
.input-group-sm .token,
|
166
|
+
.tokenfield.input-sm .token {
|
167
|
+
height: 20px;
|
168
|
+
margin-bottom: 4px;
|
169
|
+
}
|
170
|
+
.input-group-sm .token-input,
|
171
|
+
.tokenfield.input-sm .token-input {
|
172
|
+
height: 18px;
|
173
|
+
margin-bottom: 5px;
|
174
|
+
}
|
175
|
+
.tokenfield.input-lg,
|
176
|
+
.input-group-lg .tokenfield {
|
177
|
+
min-height: 45px;
|
178
|
+
padding-bottom: 4px;
|
179
|
+
}
|
180
|
+
.input-group-lg .token,
|
181
|
+
.tokenfield.input-lg .token {
|
182
|
+
height: 25px;
|
183
|
+
}
|
184
|
+
.input-group-lg .token-label,
|
185
|
+
.tokenfield.input-lg .token-label {
|
186
|
+
line-height: 23px;
|
187
|
+
}
|
188
|
+
.input-group-lg .token .close,
|
189
|
+
.tokenfield.input-lg .token .close {
|
190
|
+
line-height: 1.3em;
|
191
|
+
}
|
192
|
+
.input-group-lg .token-input,
|
193
|
+
.tokenfield.input-lg .token-input {
|
194
|
+
height: 23px;
|
195
|
+
line-height: 23px;
|
196
|
+
margin-bottom: 6px;
|
197
|
+
vertical-align: top;
|
198
|
+
}
|
199
|
+
.tokenfield.rtl {
|
200
|
+
direction: rtl;
|
201
|
+
text-align: right;
|
202
|
+
}
|
203
|
+
.tokenfield.rtl .token {
|
204
|
+
margin: -1px 0 5px 5px;
|
205
|
+
}
|
206
|
+
.tokenfield.rtl .token .token-label {
|
207
|
+
padding-left: 0px;
|
208
|
+
padding-right: 4px;
|
209
|
+
}
|
@@ -0,0 +1,141 @@
|
|
1
|
+
/*!
|
2
|
+
* bootstrap-tokenfield
|
3
|
+
* https://github.com/sliptree/bootstrap-tokenfield
|
4
|
+
* Copyright 2013-2014 Sliptree and other contributors; Licensed MIT
|
5
|
+
*/
|
6
|
+
/* General Typeahead styling, from http://jsfiddle.net/ragulka/Dy9au/1/ */
|
7
|
+
.twitter-typeahead {
|
8
|
+
width: 100%;
|
9
|
+
position: relative;
|
10
|
+
vertical-align: top;
|
11
|
+
}
|
12
|
+
.twitter-typeahead .tt-input,
|
13
|
+
.twitter-typeahead .tt-hint {
|
14
|
+
margin: 0;
|
15
|
+
width: 100%;
|
16
|
+
vertical-align: middle;
|
17
|
+
background-color: #ffffff;
|
18
|
+
}
|
19
|
+
.twitter-typeahead .tt-hint {
|
20
|
+
color: #999999;
|
21
|
+
z-index: 1;
|
22
|
+
border: 1px solid transparent;
|
23
|
+
}
|
24
|
+
.twitter-typeahead .tt-input {
|
25
|
+
color: #555555;
|
26
|
+
z-index: 2;
|
27
|
+
}
|
28
|
+
.twitter-typeahead .tt-input,
|
29
|
+
.twitter-typeahead .tt-hint {
|
30
|
+
height: 34px;
|
31
|
+
padding: 6px 12px;
|
32
|
+
font-size: 14px;
|
33
|
+
line-height: 1.428571429;
|
34
|
+
}
|
35
|
+
.twitter-typeahead .input-sm.tt-input,
|
36
|
+
.twitter-typeahead .hint-sm.tt-hint {
|
37
|
+
border-radius: 3px;
|
38
|
+
}
|
39
|
+
.twitter-typeahead .input-lg.tt-input,
|
40
|
+
.twitter-typeahead .hint-lg.tt-hint {
|
41
|
+
border-radius: 6px;
|
42
|
+
}
|
43
|
+
.input-group .twitter-typeahead:first-child .tt-input,
|
44
|
+
.input-group .twitter-typeahead:first-child .tt-hint {
|
45
|
+
border-radius: 4px 0 0 4px !important;
|
46
|
+
}
|
47
|
+
.input-group .twitter-typeahead:last-child .tt-input,
|
48
|
+
.input-group .twitter-typeahead:last-child .tt-hint {
|
49
|
+
border-radius: 0 4px 4px 0 !important;
|
50
|
+
}
|
51
|
+
.input-group.input-group-sm .twitter-typeahead:first-child .tt-input,
|
52
|
+
.input-group.input-group-sm .twitter-typeahead:first-child .tt-hint {
|
53
|
+
border-radius: 3px 0 0 3px !important;
|
54
|
+
}
|
55
|
+
.input-group.input-group-sm .twitter-typeahead:last-child .tt-input,
|
56
|
+
.input-group.input-group-sm .twitter-typeahead:last-child .tt-hint {
|
57
|
+
border-radius: 0 3px 3px 0 !important;
|
58
|
+
}
|
59
|
+
.input-sm.tt-input,
|
60
|
+
.hint-sm.tt-hint,
|
61
|
+
.input-group.input-group-sm .tt-input,
|
62
|
+
.input-group.input-group-sm .tt-hint {
|
63
|
+
height: 30px;
|
64
|
+
padding: 5px 10px;
|
65
|
+
font-size: 12px;
|
66
|
+
line-height: 1.5;
|
67
|
+
}
|
68
|
+
.input-group.input-group-lg .twitter-typeahead:first-child .tt-input,
|
69
|
+
.input-group.input-group-lg .twitter-typeahead:first-child .tt-hint {
|
70
|
+
border-radius: 6px 0 0 6px !important;
|
71
|
+
}
|
72
|
+
.input-group.input-group-lg .twitter-typeahead:last-child .tt-input,
|
73
|
+
.input-group.input-group-lg .twitter-typeahead:last-child .tt-hint {
|
74
|
+
border-radius: 0 6px 6px 0 !important;
|
75
|
+
}
|
76
|
+
.input-lg.tt-input,
|
77
|
+
.hint-lg.tt-hint,
|
78
|
+
.input-group.input-group-lg .tt-input,
|
79
|
+
.input-group.input-group-lg .tt-hint {
|
80
|
+
height: 45px;
|
81
|
+
padding: 10px 16px;
|
82
|
+
font-size: 18px;
|
83
|
+
line-height: 1.33;
|
84
|
+
}
|
85
|
+
.tt-dropdown-menu {
|
86
|
+
width: 100%;
|
87
|
+
min-width: 160px;
|
88
|
+
margin-top: 2px;
|
89
|
+
padding: 5px 0;
|
90
|
+
background-color: #ffffff;
|
91
|
+
border: 1px solid #ccc;
|
92
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
93
|
+
*border-right-width: 2px;
|
94
|
+
*border-bottom-width: 2px;
|
95
|
+
border-radius: 6px;
|
96
|
+
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
97
|
+
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
98
|
+
-webkit-background-clip: padding-box;
|
99
|
+
-moz-background-clip: padding;
|
100
|
+
background-clip: padding-box;
|
101
|
+
}
|
102
|
+
.tt-suggestion {
|
103
|
+
display: block;
|
104
|
+
padding: 3px 20px;
|
105
|
+
}
|
106
|
+
.tt-suggestion.tt-cursor {
|
107
|
+
color: #262626;
|
108
|
+
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
109
|
+
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
|
110
|
+
background-repeat: repeat-x;
|
111
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
|
112
|
+
}
|
113
|
+
.tt-suggestion.tt-cursor a {
|
114
|
+
color: #ffffff;
|
115
|
+
}
|
116
|
+
.tt-suggestion p {
|
117
|
+
margin: 0;
|
118
|
+
}
|
119
|
+
/* Tokenfield-specific Typeahead styling */
|
120
|
+
.tokenfield .twitter-typeahead {
|
121
|
+
width: auto;
|
122
|
+
}
|
123
|
+
.tokenfield .twitter-typeahead .tt-hint {
|
124
|
+
padding: 0;
|
125
|
+
height: 20px;
|
126
|
+
}
|
127
|
+
.tokenfield.input-sm .twitter-typeahead .tt-input,
|
128
|
+
.tokenfield.input-sm .twitter-typeahead .tt-hint {
|
129
|
+
height: 18px;
|
130
|
+
font-size: 12px;
|
131
|
+
line-height: 1.5;
|
132
|
+
}
|
133
|
+
.tokenfield.input-lg .twitter-typeahead .tt-input,
|
134
|
+
.tokenfield.input-lg .twitter-typeahead .tt-hint {
|
135
|
+
height: 23px;
|
136
|
+
font-size: 18px;
|
137
|
+
line-height: 1.33;
|
138
|
+
}
|
139
|
+
.tokenfield .twitter-typeahead .tt-suggestions {
|
140
|
+
font-size: 14px;
|
141
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tawork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adnan Ali
|
@@ -153,6 +153,7 @@ files:
|
|
153
153
|
- app/views/wiki/pages/_page_header.html.haml
|
154
154
|
- app/views/wiki/pages/_subpages_dropdown.html.haml
|
155
155
|
- app/views/wiki/pages/_subtree.html.haml
|
156
|
+
- app/views/wiki/pages/_tags.html.haml
|
156
157
|
- app/views/wiki/pages/_tree_node.html.haml
|
157
158
|
- app/views/wiki/pages/attach.js.coffee
|
158
159
|
- app/views/wiki/pages/combined.html.haml
|
@@ -212,6 +213,8 @@ files:
|
|
212
213
|
- db/migrate/20140112004346_create_attachments.rb
|
213
214
|
- db/migrate/20140120030547_add_name_to_users.rb
|
214
215
|
- db/migrate/20140313052226_create_starreds.rb
|
216
|
+
- db/migrate/20140314014648_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb
|
217
|
+
- db/migrate/20140314014649_add_missing_unique_indices.acts_as_taggable_on_engine.rb
|
215
218
|
- db/schema.rb
|
216
219
|
- db/seeds.rb
|
217
220
|
- init.rb
|
@@ -235,6 +238,7 @@ files:
|
|
235
238
|
- vendor/assets/.DS_Store
|
236
239
|
- vendor/assets/javascripts/.keep
|
237
240
|
- vendor/assets/javascripts/bootstrap-tagsinput.js
|
241
|
+
- vendor/assets/javascripts/bootstrap-tokenfield.js
|
238
242
|
- vendor/assets/javascripts/bootstrap-tree.js
|
239
243
|
- vendor/assets/javascripts/bootstrap-typeahead.js
|
240
244
|
- vendor/assets/javascripts/hallo.js
|
@@ -248,6 +252,7 @@ files:
|
|
248
252
|
- vendor/assets/stylesheets/bootflat-square.css
|
249
253
|
- vendor/assets/stylesheets/bootflat.css
|
250
254
|
- vendor/assets/stylesheets/bootstrap-tagsinput.css
|
255
|
+
- vendor/assets/stylesheets/bootstrap-tokenfield.css
|
251
256
|
- vendor/assets/stylesheets/bootstrap-tree.sass
|
252
257
|
- vendor/assets/stylesheets/highlight/arta.css
|
253
258
|
- vendor/assets/stylesheets/highlight/ascetic.css
|
@@ -284,6 +289,7 @@ files:
|
|
284
289
|
- vendor/assets/stylesheets/highlight/vs.css
|
285
290
|
- vendor/assets/stylesheets/highlight/xcode.css
|
286
291
|
- vendor/assets/stylesheets/highlight/zenburn.css
|
292
|
+
- vendor/assets/stylesheets/tokenfield-typeahead.css
|
287
293
|
homepage: ''
|
288
294
|
licenses:
|
289
295
|
- MIT
|