koda 0.0.9 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
data/lib/helpers/view_helper.rb
CHANGED
@@ -3,13 +3,6 @@ require 'dalli'
|
|
3
3
|
require 'uri'
|
4
4
|
require 'rest_client'
|
5
5
|
|
6
|
-
def show_koda(template, locals={})
|
7
|
-
content_type :html
|
8
|
-
options = {:layout => false}.merge(settings.view_options)
|
9
|
-
template = template_for "koda/views/#{template}.#{settings.view_format}"
|
10
|
-
render(settings.view_format, template, options, locals)
|
11
|
-
end
|
12
|
-
|
13
6
|
def show_system(template, locals={})
|
14
7
|
content_type :html
|
15
8
|
options = {:layout => false}.merge(settings.view_options)
|
@@ -23,12 +16,12 @@ def show(template, locals={})
|
|
23
16
|
|
24
17
|
@content = get_from_cache
|
25
18
|
|
26
|
-
template = template_for "
|
19
|
+
template = template_for "templates/#{template}.#{settings.view_format}"
|
27
20
|
render(settings.view_format, template, settings.view_options, locals)
|
28
21
|
end
|
29
22
|
|
30
23
|
def render_partial(template, locals={})
|
31
|
-
template = template_for "
|
24
|
+
template = template_for "templates/#{template}.#{settings.view_format}"
|
32
25
|
options = {:layout => false}.merge(settings.view_options)
|
33
26
|
|
34
27
|
@content = get_from_cache
|
@@ -596,7 +596,7 @@ qq.FileUploader = function(o){
|
|
596
596
|
'</li>',
|
597
597
|
|
598
598
|
classes: {
|
599
|
-
// used to get elements from
|
599
|
+
// used to get elements from views
|
600
600
|
button: 'qq-upload-button',
|
601
601
|
drop: 'qq-upload-drop-area',
|
602
602
|
dropActive: 'qq-upload-drop-area-active',
|
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
// The UI version extends the basic fileupload widget and adds
|
19
19
|
// a complete user interface based on the given upload/download
|
20
|
-
//
|
20
|
+
// views.
|
21
21
|
$.widget('blueimpUI.fileupload', $.blueimp.fileupload, {
|
22
22
|
|
23
23
|
options: {
|
@@ -585,7 +585,7 @@
|
|
585
585
|
},
|
586
586
|
|
587
587
|
_initTemplates: function () {
|
588
|
-
// Handle cases where the
|
588
|
+
// Handle cases where the views are defined
|
589
589
|
// after the widget library has been included:
|
590
590
|
if (this.options.uploadTemplate instanceof $ &&
|
591
591
|
!this.options.uploadTemplate.length) {
|