Commit graph

753 commits

Author SHA1 Message Date
Bradley M. Kuhn
7d65e8961d Remove GNOME Navbar
Seeking this code to be more general than the GNOME Foundation voting
site.
2015-05-14 15:59:25 -07:00
Bradley M. Kuhn
2e24b827c3 Revert: "Correct variable name" from 2014-02-09
During patch review by Tobias Mueller <muelli@cryptobitch.de>, Tobias
pointed out that the original commit referenced above seemed to make a
change that was inappropriate.  I reread my commit message and cannot
figure out why I made that change, at least, it doesn't make sense for
the reason I described, and Tobias is right that the escaped version
should be used here.

I've therefore corrected the problem and will test to see if any ill
effects occur.
2015-05-14 15:38:11 -07:00
Bradley M. Kuhn
61d0c39379 Assure $anon_token_id is integer.
The code that currently calls this only ever passes in a value that was
returned by elec_verify_voted_token() and as such no security issue
existed here.

However, assuming this function might be used for someone else in
future, we might as well case the value back to integer "just in case".

HT Tobias Mueller <muelli@cryptobitch.de> who pointed this out.
2015-05-14 15:25:28 -07:00
Bradley M. Kuhn
fe2896a094 Add blank line to fix formatting. 2014-02-27 11:40:20 -05:00
Bradley M. Kuhn
6775de0a98 Remove stray 's. 2014-02-27 11:39:28 -05:00
Bradley M. Kuhn
b4bf9a38df Note that STV elections are what this is for. 2014-02-27 11:38:57 -05:00
Bradley M. Kuhn
6527ef3fa0 Note that Apache Steve exists. 2014-02-27 11:38:47 -05:00
Bradley M. Kuhn
a1acca5411 Better headings for this section. 2014-02-12 14:25:50 -05:00
Bradley M. Kuhn
566a1d77df Add a subtitle for the list of other projects. 2014-02-12 14:24:35 -05:00
Bradley M. Kuhn
df78abfbd1 Actually the web user shouldn't have permission to update results. 2014-02-11 19:33:29 -05:00
Bradley M. Kuhn
9793479ce0 Documentation of how to publish the results of an election. 2014-02-10 18:34:35 -05:00
Bradley M. Kuhn
045b85b1ae Each election should only have one set of results; use UNIQUE to enforce. 2014-02-10 18:32:23 -05:00
Bradley M. Kuhn
54d0a4b5cb Actually, scrolling should be not necessary at all now, so I'm removing that text.
<mina86> it will never scroll  [18:09]
<mina86> or I should say, unless you have *very* narrow browser window
<bkuhn> :)
<mina86> the names of the licences will wrap if it's too narrow  [18:10]
<mina86> and horizontal scroll will appear only if individual words in license
         names are too long
2014-02-10 18:11:09 -05:00
Bradley M. Kuhn
2fb6769642 Since the box is now side-by-side, scrolling would be to the right. 2014-02-10 18:08:33 -05:00
Michal Nazarewicz
5667f10a3e [PATCH] Adjust step 2 page to use two-column layout. 2014-02-10 18:05:35 -05:00
Bradley M. Kuhn
ea2e2e9d9f Some users reported a problem of accidentally pasting in whitespace.
The right fix, of course, is have the code strip whitespace, but this note is
a useful thing in the meantime.
2014-02-10 18:01:31 -05:00
Bradley M. Kuhn
f63e4aa989 Add hr here. 2014-02-10 18:00:07 -05:00
Bradley M. Kuhn
4884d2c5df create colors for hdrNav now that we don't import GNOME's anymore. 2014-02-10 17:56:08 -05:00
Bradley M. Kuhn
76d5e5a404 Remove additional references to GNOME's CSS. 2014-02-10 17:47:31 -05:00
Bradley M. Kuhn
6973681c5c Force color for input text to be #000 on #eee,
instead of relying on default foreground color.
Thanks to pehjota for this comment:

<pehjota> bkuhn: In vote.css for "input[type=text]", you might want to set
          "color" in addition to "background-color".  Otherwise, with my dark
          GTK+ theme, I see white text in a light gray box, which is hard to
          read. :)
2014-02-10 17:47:11 -05:00
Bradley M. Kuhn
89126c6b38 Improve the text for Step 2/4.
I'm trying to get a version of this text that is clear.  This is another
attempt.
2014-02-10 17:41:31 -05:00
Bradley M. Kuhn
350f73ed21 More details on how GNOME code works, and note that E-Vote is probably better. 2014-02-10 17:33:21 -05:00
Bradley M. Kuhn
09317ec2cb Change this to have a few more buzzwords that people might search for. 2014-02-10 17:31:27 -05:00
Bradley M. Kuhn
48865240c6 Another rewrite of the first section of the README,
now including information that I got from Karl Fogel about E-Vote and
OpenSTV's last known GPL release.
2014-02-10 17:30:21 -05:00
Bradley M. Kuhn
96683ddde9 Clearer instructions for how to handle the voting.
This was primarily based on feedback from Richard Fontana, who said the
previous instructions were unclear.

I also figured it's better to refer to third party documents on what STV is,
rather than the vague description that was here previously.
2014-02-10 17:14:18 -05:00
Bradley M. Kuhn
84c94b65c2 More instructions for the process of handling an election. 2014-02-10 17:12:37 -05:00
Bradley M. Kuhn
13de6b65da The election_results table should be in the schema.
I was unsure what field type to make the results, but reading this:
  http://dev.mysql.com/doc/refman/5.0/en/blob.html
convinced me that I should probably make it "text" type.
2014-02-10 17:03:53 -05:00
Bradley M. Kuhn
1f695220a0 Include source code link on all pages. 2014-02-10 16:57:19 -05:00
Bradley M. Kuhn
8b48610db8 Note earlier in the text that I was looking specifically for STV systems. 2014-02-10 16:50:50 -05:00
Bradley M. Kuhn
603a7e7d15 Note that the fedora voting system exists,
and fix a few wording around that.
2014-02-10 16:43:21 -05:00
Bradley M. Kuhn
3ed4440b24 Add missing comma in SQL CREATE TABLE statement. 2014-02-10 12:27:07 -05:00
Bradley M. Kuhn
cd16187efa Typo fix. 2014-02-10 12:21:37 -05:00
Bradley M. Kuhn
611142c18f Remove duplicate election_tmp_tokens CREATE:
I added this earlier not realizing it was elsewhere in the file.  However, my
comment is probably useful so I've left it.
2014-02-10 12:17:32 -05:00
Bradley M. Kuhn
ffe0af6767 Symlink README.md to README for gitorious happiness 2014-02-10 12:12:51 -05:00
Bradley M. Kuhn
17d144fbc8 Merge in branch created for forking GNOME Foundation voting system into Conservancy's own system. 2014-02-10 12:11:10 -05:00
Bradley M. Kuhn
07433c6609 Remove GNOME specific text in headers, footers and related places. 2014-02-10 12:09:35 -05:00
Bradley M. Kuhn
2e2dc1f01e Fix typo. 2014-02-10 11:58:23 -05:00
Bradley M. Kuhn
2e7cf50e4c A few formatting fixes, only whitespace changes here. 2014-02-10 11:10:19 -05:00
Bradley M. Kuhn
a2f845a62f Explain the purpose and reasons for this project in the first place. 2014-02-10 11:09:14 -05:00
Bradley M. Kuhn
1797f6be62 Improve textual output for verification page. 2014-02-09 19:06:00 -05:00
Bradley M. Kuhn
f5872caf9d Choice lookup needs to happen here by the info we have,
which is anon_token_id.
This adds the functions and code necessary to do that.
This is probably a bit of a hack.
2014-02-09 19:04:33 -05:00
Bradley M. Kuhn
2deda98022 Correct URL name. 2014-02-09 18:47:20 -05:00
Bradley M. Kuhn
4e29b1d107 Correct variable name;
I suspect that a previous bad cut and paste caused this.
2014-02-09 18:46:54 -05:00
Bradley M. Kuhn
5865715712 Only fail if the lookup when the $anon_token_id is not found. 2014-02-09 18:44:30 -05:00
Bradley M. Kuhn
80c0efa2d9 Create a verification page,
so that voters can see how they voted online before the election actually
ends.
2014-02-09 17:24:32 -05:00
Bradley M. Kuhn
983e846593 Remove text describing GNOME Election,
although this is now as Conservancy specific as it was GNOME specific before.
2014-02-09 17:23:47 -05:00
Bradley M. Kuhn
b65555b2cd SELECT is also needed on election_votes for blt.php to work. 2013-12-18 19:10:57 -05:00
Bradley M. Kuhn
84c9402b81 Fix one other place where an email address is hard-coded. 2013-12-18 19:06:35 -05:00
Bradley M. Kuhn
047e7d98dd Another small formatting fix. 2013-12-18 19:05:03 -05:00
Bradley M. Kuhn
8f85cfe905 Note about how to deal with problems. 2013-12-18 19:04:41 -05:00