Commit graph

57 commits

Author SHA1 Message Date
Tom Hughes
d963aa30b7 Add rel=nofollow to links in tags. Closes #2555. 2009-12-14 09:09:32 +00:00
Tom Hughes
41dfa42edd Sanitize any user supplied HTML before doing link detection or the
sanitizer will strip the rel=nofollow attributes.
2009-11-14 16:31:51 +00:00
Tom Hughes
17445a44da Make rel=nofollow actually work - when in doubt trust the source as
the rails documentation speaks with forked tongue.
2009-11-14 16:15:26 +00:00
Tom Hughes
6bfa897cfc Add nofollow to user provided links. 2009-11-14 15:11:57 +00:00
Tom Hughes
7dd06b4f88 Fix a few nominatim issues. 2009-11-10 13:35:58 +00:00
Tom Hughes
daf8c80161 Use the bbox to build the URL if there is one. 2009-11-09 09:28:46 +00:00
Tom Hughes
e0cbfe24a5 Escape non-ascii characters in exported HTML. Closes #2075. 2009-10-27 00:59:38 +00:00
Tom Hughes
17e0753962 Use bounding box information to zoom to search results when possible. 2009-10-15 09:27:21 +00:00
Tom Hughes
fb9789929c Fix output of javascript strings - use english strings to walk the
tree but output strings in the correct locale. Closes #2362.
2009-10-08 12:25:55 +00:00
Tom Hughes
7de5220090 Merge 17944:17988 from trunk. 2009-10-05 20:25:45 +00:00
Tom Hughes
f4dba81b64 Modify the existing i18n() javascript function to lookup strings in
the javascript i18n array as well as expanding arguments, and make all
lookups go through it.
2009-10-02 23:41:19 +00:00
Tom Hughes
596ab82461 Move javascript translations to a separate key based on the path to
the javascript file that uses them and amend the layout to automatically
find and output all javascript strings.
2009-10-02 23:33:17 +00:00
Matt Amos
ca06b3c7b1 New migration to add better auditing to user_roles and better column names there and on user_blocks. Added a helper for displaying block status messages. 2009-09-29 16:44:03 +00:00
Tom Hughes
fc5261ece5 Remove remaining trailing spaces from translations. 2009-09-22 20:15:09 +00:00
Ævar Arnfjörð Bjarmason
658a34714f When displaying objects in /browse/* and in the JavaScript "Data"
feature use the name key corresponding to the user's
locale. E.g. "name:is" for Icelandic.

This will fall back on "name". The interface will be equivalent unless
the user has selected another language than English in the preferences
and objects with localized name:* tags corresponding to the user's
language are being displayed.
2009-09-17 23:36:54 +00:00
Tom Hughes
64fb530581 Merge 16110:16487 from trunk. 2009-07-14 08:03:24 +00:00
Tom Hughes
b450ce9d85 Fix links to changeset feeds. 2009-07-04 12:12:05 +00:00
Ævar Arnfjörð Bjarmason
bc66c8adeb Make the printable_name() function call i18n.t to translate its
output. Makes e.g. "#{name}, v#{object.version.to_s}" which is used in
the changeset browser translatable.

I'm still not happy with how the anchor is constructed. we're linking
from /browse/changeset/1234 to e.g. node "[[366672999, v1]]" even
though the page we're linking to might take us to that node at version
2. The link should be "[[366672999]], v1" instead.

But that's something to solve later.
2009-06-28 21:13:27 +00:00
Tom Hughes
f4571eeb7c Revert r16046.
DO NOT COMMIT MAJOR ENHANCEMENTS TO TRUNK WITHOUT TALKING TO ME FIRST.
2009-06-23 02:48:38 +00:00
Matt Amos
b8f6dbd403 Adding initial version of the OAuth token authentication method. This adds basic OAuth support for registering apps, getting and revoking keys, etc... The tokens come with 6 separate permissions bits; read/write user preferences, write diaries, write API and read/write GPS traces. Needs more tests. 2009-06-22 16:54:37 +00:00
Thomas Wood
22292debda Data browser changes, make links more user friendly, displaying name tag where possible.
Changes to models ok'd (and suggested as temporary solution) by TomH
References #1777
2009-05-02 00:26:37 +00:00
Shaun McDonald
2ed84e26cd Adding pagination to the changesets, thus allowing you to browe large changesets, without MySQL complaining about memory. Probably needs some fine tuning. You currently can only page one of nodes, ways, and relations, without manually setting the relations. Fixing deprection notice for the classic_pagination plugin. 2008-11-27 17:06:43 +00:00
Tom Hughes
5620d7263a Merge 7452:7744 from trunk. 2008-05-09 23:22:26 +00:00
Tom Hughes
5bc80823ec Tidy up RSS links a bit. 2008-04-23 17:39:09 +00:00
Tom Hughes
b909dc4ab8 Add a stub helper for the browse controller. 2008-04-20 12:21:07 +00:00
Tom Hughes
cb75e0bdd0 Add export helper. 2008-04-18 22:56:52 +00:00
Steve Coast
e13337354d preference stuff 2008-02-23 11:12:42 +00:00
Tom Hughes
c3bd1f113b Tidy up message sensitisation a bit more, and add sensitisation of
information in the diary RSS feeds.
2008-01-16 10:02:42 +00:00
Tom Hughes
6d6c9ddc8c Specify display_name and tag explicitly when generating pagination links
as they don't always seem to be default correctly. Closes #561.
2007-11-30 01:27:14 +00:00
Tom Hughes
714fc42d8e Don't include any page numbers in links in the tag list. 2007-10-31 00:35:27 +00:00
Gabriel Ebner
0f91ad8966 rails_port_0.5: Merge rails_port r4664. 2007-09-23 20:37:16 +00:00
Tom Hughes
56500280d4 Avoid warning. 2007-09-23 16:54:48 +00:00
Gabriel Ebner
cfbdd3f7e1 Merge rails_port as of r4613 & fix tests. 2007-09-20 14:37:29 +00:00
Tom Hughes
e583ead8f8 Make the search URLs include a marker. 2007-08-29 22:41:02 +00:00
Frederik Ramm
78b440ffc1 preliminary commit 0.5 API with relations / untested after entity-relation rename, some changes still in queue 2007-08-29 22:00:26 +00:00
Frederik Ramm
02451061ce segment stuff removed 2007-08-29 21:38:38 +00:00
Tom Hughes
3e6329718b Provide proper URLs in search results. 2007-08-29 09:16:58 +00:00
Tom Hughes
e376f3c009 Include a general location from GeoNames in the reverse geocode description. 2007-08-24 22:50:34 +00:00
Tom Hughes
08b71b48e1 Tidy up trace handling a bit, and add support for per-user and per-tag feeds. 2007-08-15 18:10:18 +00:00
Tom Hughes
bb43a46bab Only use the actual name that matched as the link, which helps to highlight it. 2007-08-07 23:51:02 +00:00
Richard Fairhurst
0944c1cf02 Potlatch-on-Rails, ready to go (fingers crossed) 2007-05-18 15:20:31 +00:00
Richard Fairhurst
220ad0a6b6 Potlatch on Rails, first working version 2007-05-08 00:37:58 +00:00
Steve Coast
f9baf5f392 diary / user bits 2007-04-07 19:50:55 +00:00
Steve Coast
a7e3b58b41 add tags to gpx files 2006-12-06 17:10:59 +00:00
Steve Coast
fac305e87b various gpx bits 2006-12-01 15:59:13 +00:00
Steve Coast
db1e02adb5 rails way bits 2006-11-27 10:35:10 +00:00
Steve Coast
59cc0015f5 various things 2006-11-17 19:56:54 +00:00
Steve Coast
d7be818949 add a map (api) controller 2006-11-17 18:45:46 +00:00
Steve Coast
b95e9d2759 more way bits 2006-08-26 21:36:21 +00:00
Steve Coast
7c1b6e850d oops wrong name 2006-08-26 20:50:13 +00:00