Commit cf2bfc08e83dc19a2dfd78adffcff54289adcb20
1 parent
ea86d6ae
Exists in
master
and in
1 other branch
Added new strategies to list, fixed slider pagination bug (now it starts from
1/10) and fixed typos.
Showing
3 changed files
with
6 additions
and
4 deletions
Show diff stats
src/web/survey.py
@@ -156,8 +156,10 @@ class Save: | @@ -156,8 +156,10 @@ class Save: | ||
156 | 156 | ||
157 | class Survey: | 157 | class Survey: |
158 | def __init__(self): | 158 | def __init__(self): |
159 | - self.strategies = ["cb","cbd","cbt"] | 159 | + self.strategies = ["cb","cbd","cbt","col","cb-desktop","cbd-desktop", |
160 | + "cbt-desktop","col-desktop"] | ||
160 | self.rec = Recommender(Config()) | 161 | self.rec = Recommender(Config()) |
162 | + #print rec.users_repository.get_doccount() | ||
161 | self.submissions_dir = "./submissions/" | 163 | self.submissions_dir = "./submissions/" |
162 | if not os.path.exists(self.submissions_dir): | 164 | if not os.path.exists(self.submissions_dir): |
163 | os.makedirs(self.submissions_dir) | 165 | os.makedirs(self.submissions_dir) |
src/web/templates/survey.html
@@ -67,7 +67,7 @@ $for pkg in pkg_details: | @@ -67,7 +67,7 @@ $for pkg in pkg_details: | ||
67 | <img height="70px" src="http://screenshots.debian.net/thumbnail/$pkg['package']" | 67 | <img height="70px" src="http://screenshots.debian.net/thumbnail/$pkg['package']" |
68 | alt="Screenshot $pkg['package']" /></a> | 68 | alt="Screenshot $pkg['package']" /></a> |
69 | </div><!-- screenshot --> | 69 | </div><!-- screenshot --> |
70 | - <h1 style="float: right;">($pkg_details.index(pkg)/10)</h1> | 70 | + <h1 style="float: right;">($(pkg_details.index(pkg)+1)/10)</h1> |
71 | <h1 id="title_pkg"> $pkg['package'] <br /> | 71 | <h1 id="title_pkg"> $pkg['package'] <br /> |
72 | <span>$pkg['description']</span></h1> | 72 | <span>$pkg['description']</span></h1> |
73 | <br style="clear: both;" /> | 73 | <br style="clear: both;" /> |
@@ -83,7 +83,7 @@ $for pkg in pkg_details: | @@ -83,7 +83,7 @@ $for pkg in pkg_details: | ||
83 | </label><br /> | 83 | </label><br /> |
84 | <label class="radioButton"> | 84 | <label class="radioButton"> |
85 | <input class="radio yesb" type="radio" name="evaluation-$pkg_details.index(pkg)" value="good" /> | 85 | <input class="radio yesb" type="radio" name="evaluation-$pkg_details.index(pkg)" value="good" /> |
86 | - Usefull | 86 | + Useful |
87 | <!--<div class="tip tip"> | 87 | <!--<div class="tip tip"> |
88 | <p>Good $pkg['package'] FIXME </p> | 88 | <p>Good $pkg['package'] FIXME </p> |
89 | </div>--> | 89 | </div>--> |
src/web/templates/thanks_id.html
@@ -8,7 +8,7 @@ $var cssfiles: static/css/survey.css | @@ -8,7 +8,7 @@ $var cssfiles: static/css/survey.css | ||
8 | 8 | ||
9 | <center> | 9 | <center> |
10 | <h1>Thanks!</h1> | 10 | <h1>Thanks!</h1> |
11 | -<p>Thank you once again and stay tunned for the survey results report.</p><br /> | 11 | +<p>Thank you once again and stay tuned for the survey results report.</p><br /> |
12 | </center> | 12 | </center> |
13 | 13 | ||
14 | </div><!-- class="innertube" --> | 14 | </div><!-- class="innertube" --> |