coursegen 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coursegen/course/helpers/content_helpers.rb +22 -12
- data/lib/coursegen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95d19a204722d46d2b449d337e27120f1a5695c7
|
4
|
+
data.tar.gz: e01e950e3f56726062f896af924837cdc8785636
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '089b8cc554d0cf6ddb255d62611de872aba7a4d39958ac9b906c9892a2c619c1ed84595e634cb0e8f3fd88683f527eaadd1c09b6197204663793de485e1ef901'
|
7
|
+
data.tar.gz: 8d743322068f0fc4349627c009dbae91249266cf03c1274435bfaaaa26afb301ed1cb8805343c3c3bb049ef5489fa5eaa3fb02e646fe5132fabf19f5a563acd7
|
@@ -88,18 +88,19 @@ HTMLSTRING
|
|
88
88
|
iconbadge("time", "Must be submitted first thing on day of class")
|
89
89
|
end
|
90
90
|
|
91
|
-
def include_image_old
|
91
|
+
def include_image_old filename_string, extra_class: nil
|
92
92
|
css_class = "img-responsive"
|
93
93
|
css_class += " img-" + extra_class unless extra_class.nil?
|
94
|
-
|
95
|
-
|
94
|
+
<<-HTMLSTRING
|
95
|
+
<img src="#{filename_string}" class=\"%s\" />" % css_class
|
96
|
+
HTMLSTRING
|
96
97
|
end
|
97
98
|
|
98
|
-
def include_image filename_string,
|
99
|
+
def include_image filename_string, extra: ""
|
99
100
|
<<-HTMLSTRING
|
100
101
|
<div class="row">
|
101
|
-
<div class="col-md-offset-2 col-md
|
102
|
-
<img src="#{filename_string}" class="img-responsive img-thumbnail" />
|
102
|
+
<div class="col-md-offset-2 col-md-8">
|
103
|
+
<img src="#{filename_string}" class="img-responsive img-thumbnail" #{extra}/>
|
103
104
|
</div>
|
104
105
|
</div>
|
105
106
|
HTMLSTRING
|
@@ -137,6 +138,10 @@ HTMLSTRING
|
|
137
138
|
"*Discussion:*{: style=\"color: blue\"} *#{string}*"
|
138
139
|
end
|
139
140
|
|
141
|
+
def discussion_box string
|
142
|
+
%(<div class="alert alert-info"><strong>Discussion:</strong> #{string}</div>)
|
143
|
+
end
|
144
|
+
|
140
145
|
def homework_hdr
|
141
146
|
"#### Homework due for today"
|
142
147
|
end
|
@@ -167,17 +172,22 @@ HTMLSTRING
|
|
167
172
|
<div class="carousel-inner" role="listbox" style="margin: 20px; ">)
|
168
173
|
counter = 0
|
169
174
|
filenames.each do |nam|
|
170
|
-
ci = counter == 0 ? %(<div class="
|
171
|
-
puts "****** #{ci}"
|
175
|
+
ci = counter == 0 ? %(<div class="item active">) : %(<div class="item">)
|
172
176
|
body << ci
|
173
177
|
body << %(<img src=")
|
174
178
|
body << nam
|
175
|
-
body << %("
|
179
|
+
body << %("/>"></div>)
|
176
180
|
counter += 1
|
177
181
|
end
|
178
|
-
body << %(</div> <a class="carousel-control
|
179
|
-
|
180
|
-
|
182
|
+
body << %(</div> <a class="left carousel-control" role="button" href="#myCarousel" data-slide="prev">
|
183
|
+
<span class="glyphicon glyphicon-chevron-left"></span>
|
184
|
+
<span class="sr-only">Previous</span>
|
185
|
+
</a>
|
186
|
+
<a class="right carousel-control" role="button" href="#myCarousel" data-slide="next">
|
187
|
+
<span class="glyphicon glyphicon-chevron-right"></span>
|
188
|
+
<span class="sr-only">Next</span>
|
189
|
+
</a>
|
190
|
+
</div>)
|
181
191
|
body
|
182
192
|
end
|
183
193
|
|
data/lib/coursegen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coursegen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pito Salas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|