koda 0.0.9 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 "views/#{template}.#{settings.view_format}"
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 "views/#{template}.#{settings.view_format}"
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
@@ -63,6 +63,8 @@
63
63
  > richtext
64
64
  > kodalinkeditor
65
65
  > truefalse
66
+ > collection
67
+ > collection-multi
66
68
 
67
69
  ### Collections
68
70
 
@@ -596,7 +596,7 @@ qq.FileUploader = function(o){
596
596
  '</li>',
597
597
 
598
598
  classes: {
599
- // used to get elements from templates
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
- // templates.
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 templates are defined
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) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: