Commit cf2bfc08e83dc19a2dfd78adffcff54289adcb20

Authored by Tássia Camões Araújo
1 parent ea86d6ae
Exists in master and in 1 other branch add_vagrant

Added new strategies to list, fixed slider pagination bug (now it starts from

1/10) and fixed typos.
src/web/survey.py
... ... @@ -156,8 +156,10 @@ class Save:
156 156  
157 157 class Survey:
158 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 161 self.rec = Recommender(Config())
  162 + #print rec.users_repository.get_doccount()
161 163 self.submissions_dir = "./submissions/"
162 164 if not os.path.exists(self.submissions_dir):
163 165 os.makedirs(self.submissions_dir)
... ...
src/web/templates/survey.html
... ... @@ -67,7 +67,7 @@ $for pkg in pkg_details:
67 67 <img height="70px" src="http://screenshots.debian.net/thumbnail/$pkg['package']"
68 68 alt="Screenshot $pkg['package']" /></a>
69 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 71 <h1 id="title_pkg"> $pkg['package'] <br />
72 72 <span>$pkg['description']</span></h1>
73 73 <br style="clear: both;" />
... ... @@ -83,7 +83,7 @@ $for pkg in pkg_details:
83 83 </label><br />
84 84 <label class="radioButton">
85 85 <input class="radio yesb" type="radio" name="evaluation-$pkg_details.index(pkg)" value="good" />
86   - Usefull
  86 + Useful
87 87 <!--<div class="tip tip">
88 88 <p>Good $pkg['package'] FIXME </p>
89 89 </div>-->
... ...
src/web/templates/thanks_id.html
... ... @@ -8,7 +8,7 @@ $var cssfiles: static/css/survey.css
8 8  
9 9 <center>
10 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 12 </center>
13 13  
14 14 </div><!-- class="innertube" -->
... ...