qwester 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -37,37 +37,6 @@ module Qwester
|
|
37
37
|
redirect_to admin_qwester_question_path(answer.question)
|
38
38
|
end
|
39
39
|
|
40
|
-
# controller do
|
41
|
-
#
|
42
|
-
# before_filter :get_question_and_answer, :only => [:move_up, :move_down, :remove]
|
43
|
-
#
|
44
|
-
|
45
|
-
|
46
|
-
#
|
47
|
-
# def add
|
48
|
-
# answer = Answer.find(params[:id])
|
49
|
-
# @rule_set = RuleSet.find(params[:rule_set_id])
|
50
|
-
# @rule_set.answers << answer
|
51
|
-
# end
|
52
|
-
#
|
53
|
-
# def delete
|
54
|
-
# answer = Answer.find(params[:id])
|
55
|
-
# @rule_set = RuleSet.find(params[:rule_set_id])
|
56
|
-
# @rule_set.answers.delete(answer)
|
57
|
-
# end
|
58
|
-
#
|
59
|
-
# private
|
60
|
-
# def get_question_and_answer
|
61
|
-
# @answer = Answer.find(params[:id])
|
62
|
-
# @question = Question.find(params[:question_id])
|
63
|
-
# end
|
64
|
-
#
|
65
|
-
# def redirect_to_answer_show
|
66
|
-
# redirect_to admin_question_path(@question)
|
67
|
-
# end
|
68
|
-
#
|
69
|
-
# end
|
70
|
-
|
71
40
|
end if defined?(ActiveAdmin)
|
72
41
|
|
73
42
|
end
|
@@ -23,6 +23,7 @@ module Qwester
|
|
23
23
|
|
24
24
|
show do
|
25
25
|
h2 qwester_presentation.title
|
26
|
+
div sanitize(qwester_presentation.description) if qwester_presentation.description.present?
|
26
27
|
qwester_presentation.questionnaires.each do |questionnaire|
|
27
28
|
div(:style => 'display:inline-block;margin-right:20px;') do
|
28
29
|
para image_tag(questionnaire.button_image.url(:thumbnail))
|
@@ -23,7 +23,7 @@ module Qwester
|
|
23
23
|
f.inputs "Details" do
|
24
24
|
f.input :title
|
25
25
|
if defined?(Ckeditor)
|
26
|
-
f.input :description, :as => :ckeditor, :input_html => { :height => 100
|
26
|
+
f.input :description, :as => :ckeditor, :input_html => { :height => 100 }
|
27
27
|
else
|
28
28
|
f.input :description, :input_html => { :rows => 3}
|
29
29
|
end
|
@@ -83,7 +83,7 @@ EOF
|
|
83
83
|
f.inputs "Details" do
|
84
84
|
f.input :title
|
85
85
|
if defined?(Ckeditor)
|
86
|
-
f.input :description, :as => :ckeditor, :input_html => { :height => 100
|
86
|
+
f.input :description, :as => :ckeditor, :input_html => { :height => 100 }
|
87
87
|
else
|
88
88
|
f.input :description, :input_html => { :rows => 3}
|
89
89
|
end
|
data/lib/qwester/version.rb
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
module Qwester
|
2
|
-
VERSION = "0.1.
|
2
|
+
VERSION = "0.1.2"
|
3
3
|
end
|
4
4
|
|
5
5
|
# History
|
6
6
|
# =======
|
7
7
|
#
|
8
|
+
# 0.1.2 - Modification to admin pages
|
9
|
+
# Changes CKeditor to use default style.
|
10
|
+
#
|
8
11
|
# 0.1.1 - Makes presentation object available to controller and views
|
9
12
|
# @presentation used to store current Presentation
|
10
13
|
#
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qwester
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|