Commit graph

1254 commits

Author SHA1 Message Date
Tom Hughes
e733264687 Add missing files from api06 merge. 2009-04-20 14:09:35 +00:00
Tom Hughes
fd6f00b069 Merge api06 branch to trunk. 2009-04-20 09:12:03 +00:00
Thomas Wood
e8c7543bdd Add condition for user not found in trace controller.
Closes #1710
2009-04-19 21:22:34 +00:00
Thomas Wood
c29c7cd56c Fix map in IE by deferring Vector layer addition to page load (note that deferred script running is _not_ the same as onload), also only add the Vector layer as required, so to save some overhead.
I've trimmed down the unrequired options on the layer, they're defaulted from the map.
Thanks firefishy for the report.
2009-04-19 21:03:41 +00:00
Tom Hughes
e9c2c64884 Don't register a setHome handler unless we have the flag checkbox
prsent on the page.
2009-04-19 11:00:37 +00:00
Tom Hughes
1c81de0572 Send replies to the right user. Closes #1720. 2009-04-19 10:36:04 +00:00
Tom Hughes
4eafa04ff8 Reject uploads unless the user has made their edits pubic. 2009-04-16 21:50:20 +00:00
Tom Hughes
141a5692eb Fixed to work with merged changes to api availability checks. 2009-04-16 21:38:29 +00:00
Tom Hughes
a68b8651d5 Handle MySQL/Postgres boolean differences. 2009-04-16 21:16:09 +00:00
Tom Hughes
5449cf4adc Merge 14394:14533 from trunk. 2009-04-16 21:11:12 +00:00
Tom Hughes
bb7c4f93e2 Cope with MySQL and Postgres. 2009-04-16 20:40:32 +00:00
Shaun McDonald
08bd1688ee Railsify the relation member model, type attribute, by putting it into class case, rather than lower case. Requires reload of postgres databases or manual change to the enum. Fixes the databrowser on postgres, however affects the rest of the codebase. 2009-04-15 14:49:21 +00:00
Tom Hughes
80c6c685bc Fix database check in browse controller. 2009-04-15 09:05:29 +00:00
Tom Hughes
45dfd0f05f Fix spelling mistake. 2009-04-15 08:03:26 +00:00
Tom Hughes
09fdee5493 Add a "database readonly" state that allows all writes to the database
to be suppressed.
2009-04-14 14:27:30 +00:00
Shaun McDonald
5bc558e355 Should have a .new when raising error 2009-04-14 12:00:26 +00:00
Shaun McDonald
90ec90f13d reverting last change, which included posgres config specific things 2009-04-13 00:10:37 +00:00
Shaun McDonald
2c52b06716 Remove duplication that is in the test helper. Adding tests for the passing of no content, and the wrong method used. Also ensuring that there has been a changeset added to the db when it is created. 2009-04-13 00:04:24 +00:00
Shaun McDonald
0f25285ab6 More tests, found a bug in the data browser, no fix yet. Fix db readme. Don't show the signup page to logged in users, by redirecting them to the home page. Remove unnessesary begin blocks in the browse controller. 2009-04-12 23:20:31 +00:00
Thomas Wood
464c490cae Use the right keyword this time... 2009-04-09 23:18:21 +00:00
Thomas Wood
6442208841 Add exceptions for remaing cases where XML::Parser.string is used, to catch for empty strings.
See also r14241
2009-04-09 22:37:43 +00:00
Thomas Wood
776d2d7bc2 Return "Make my edits" button to functioning state, positioning is unfortunate, but it cannot be inside the page's form. I've made a compromise of the two states. 2009-04-09 17:06:53 +00:00
Thomas Wood
c64ebb9139 Add has_valid_bbox? method to Changeset model to tidy checking for bbox, and fix edge case where no bbox would cause changeset browsing to die. 2009-04-09 11:18:31 +00:00
Tom Hughes
1262b376ef Add a mini map to the changeset view in the data browser. 2009-04-08 23:44:43 +00:00
Tom Hughes
b02c873c0e Eliminate duplication of tag printing logic. 2009-04-08 23:19:41 +00:00
Harry Wood
fdd5d2d779 new support for box=yes param on the homepage, and then link to this from various changeset display 2009-04-08 16:55:22 +00:00
Tom Hughes
1f8a68371a Merge 14059:14394 from trunk. 2009-04-08 13:53:09 +00:00
Tom Hughes
9b72debd9a Fix formatting of changeset details. 2009-04-08 13:35:35 +00:00
Harry Wood
c321c026f2 tweak lat lon decision logic for the edit tab. made it more similar to logic in index, including using cookie 2009-04-02 18:08:46 +00:00
Harry Wood
bf0d8b3a5e lose the unnecessary <% embed syntax %> 2009-04-02 17:19:33 +00:00
Tom Hughes
72dfc2e55e Use correct key for z15 and greater. 2009-03-29 16:23:07 +00:00
Matt Amos
18633b7c9e Fixed a problem where rails was setting the ID column to null, which violates the not-null constraint. Also fixed possible typo in AMF controller. 2009-03-29 02:14:40 +00:00
Matt Amos
afcb345014 Moved a bunch of time functions into UTC. Fixes bugs which we only see for 4 hours a year. 2009-03-29 01:31:04 +00:00
Matt Amos
8140c99313 Fix for correct boolean handling in query. 2009-03-29 00:56:08 +00:00
Matt Amos
be75a1504f Fixed a couple of bugs with changeset bounding box calculation when modifying or deleting. 2009-03-27 12:22:23 +00:00
Harry Wood
663416ae0b fix 'edits' link. action was renamed 'list_user' 2009-03-26 23:43:34 +00:00
Richard Fairhurst
023b9e3662 fix user:pass auth for Potlatch 2009-03-26 09:38:11 +00:00
Matt Amos
568c05c548 Fixing failing potlatch tests. Someone who knows what the potlatch API is actually supposed to be doing should check these... 2009-03-25 17:54:21 +00:00
Tom Hughes
9752466c03 Add SOTM advert. 2009-03-25 16:49:33 +00:00
Harry Wood
0f3e5a28c0 show a 'no bbox specified' message for the moment at least. Due to inconsistent location detecting across tabs, the history tab often gets nil bbox (Need to fix for all tabs) + other history tab tweaks 2009-03-24 11:23:56 +00:00
Thomas Wood
6167bb6502 Shut up libxml's "Must specify a string with one or more characters" error on relation and way models. 2009-03-23 21:52:32 +00:00
Thomas Wood
d841d3d135 <td> tags must be closed, move browse index test over to changeset, lazy fix for new format 2009-03-23 21:35:06 +00:00
Thomas Wood
8fb97a3337 Rather than referring how to view a bbox history, just redirect to the global history. 2009-03-23 19:56:01 +00:00
Thomas Wood
7d3a5899c9 More fixes to the changeset viewer, including logged-in-ness on per-user edit lists, fix XSS potential on usernames here, and general tidyups. 2009-03-23 19:40:33 +00:00
Thomas Wood
677f391ec1 Fix various auth bugs with the changeset listing stuff, catch exception (but not yet handled well) for when edits not public. 2009-03-23 18:23:37 +00:00
Harry Wood
afe8dd51ec Add 'history' tab + Move 'recent changes' changeset list to re-use the same _changeset.rhtml partial 2009-03-23 16:39:59 +00:00
Harry Wood
231bdf66cd lose the unneeded <% syntax %> 2009-03-20 12:05:00 +00:00
Tom Hughes
eff9fa3b00 Refactor the GPX upload to try and avoid the import daemon loading traces
which do not exist yet.
2009-03-20 00:08:53 +00:00
Tom Hughes
81835c55a0 Commit ACL related files from earlier merges as svn merge seems to
neglected to add them...
2009-03-08 16:13:00 +00:00
Tom Hughes
7184ae0096 Add tabindex values to make sure links are not in the tab order when
navigating forms.
2009-03-08 16:12:07 +00:00