Commit graph

64 commits

Author SHA1 Message Date
Mikel Maron
48929e8781 Add a map to the changeset list page
Add a map to the changeset list page, with a bounding box for each
changeset and highighting when the mouse is placed over either a box
on the map or a row of the table.
2011-05-01 22:55:28 +01:00
Tom Hughes
ba639159dd Handle changesets with an empty string as the comment 2011-03-25 22:51:39 +00:00
Tom Hughes
2adcfc1a72 Don't allow paging of the changeset atom feed
Make any request for a changeset feed with a page argument redirect
to the version with no page argument and ensure that any RSS links on
the HTML version of the changeset list don't have a page argument.
2010-08-09 13:47:21 +01:00
Tom Hughes
cf682f49b3 Add a timeout to the change list pages 2010-05-21 20:21:41 +01:00
Tom Hughes
d963aa30b7 Add rel=nofollow to links in tags. Closes #2555. 2009-12-14 09:09:32 +00:00
Tom Hughes
d794f665a5 Preserve parameters in pagination links. 2009-11-19 00:20:19 +00:00
Tom Hughes
261a93fbbc Replace the existing pagination of changesets in the browser with a
simple next/previous pagination that avoids the need to count the total
number of matches.
2009-11-18 20:21:54 +00:00
Ævar Arnfjörð Bjarmason
da28349f51 So the way [17620] did it sucked but [17624] broke it unless you
didn't have any changes because .item_count is the number of edits,
not pages.

Using .page_count works though, Whee!
2009-09-14 23:36:21 +00:00
Ævar Arnfjörð Bjarmason
835e12925e auto_link() changeset comments in the global/user/bbox/etc history too
(as well as in changeset detail & atom feeds)
2009-09-14 23:26:36 +00:00
Tom Hughes
26bd59a1da Output tags to the feed as raw HTML so that links are not escaped (any
real HTML in the tag has already been escaped). Closes #2264.
2009-09-14 23:17:52 +00:00
Tom Hughes
9200520395 Escape tag values - there is no reason at all to render things which
might look like HTML tags in a tag value.
2009-09-14 23:17:02 +00:00
Tom Hughes
253e8a272d Improve handling of the case where there is only one page of changesets. 2009-09-14 23:04:06 +00:00
Ævar Arnfjörð Bjarmason
466f640138 While we don't have the sanitizing backend to safely solve ticket
#2264 I'm going to remove the auto_link feature of changeset tags. The
links are broken in all conforming Atom readers at the moment.
2009-09-14 21:08:17 +00:00
Ævar Arnfjörð Bjarmason
332f8d3a4f Now when all the entries fit on one page a trailing slash won't be
included after "Showing page %d (%d of %d)"
2009-09-14 19:42:32 +00:00
Tom Hughes
096459404c Format dates in the changeset list so the year is shown. Closes #2232. 2009-08-28 07:55:34 +00:00
Ævar Arnfjörð Bjarmason
fc9768f34c Add type="html" to <title> so a <title> with "&lt;" will be displayed
as "<" and not literally as "&lt;".

See section 3.1.1 in RFC 4287
2009-08-07 12:17:02 +00:00
Ævar Arnfjörð Bjarmason
a6f190eabe Include the changeset comment in the <title> of the Atom feeds if
there's a changeset comment.

I'm not doing any snipping of the comment so they could run to 255
characters (the max size in the database), but from testing a few feed
clients it looks like they do this pretty well at the client side.
2009-08-07 00:59:01 +00:00
Tom Hughes
e477f68a6c Render the links using partial so we can do the appropriate rendering
for HTML and Atom versions and hopefully get the escaping right in the
feed. Closes #2135.
2009-08-05 23:39:24 +00:00
Tom Hughes
4afacf3410 Fix the changeset feed to put the description in as raw HTML so we
can include links instead of having to create a separate link free
version of it.
2009-07-30 11:25:33 +00:00
Ævar Arnfjörð Bjarmason
b06b6c2ce9 Atom readers (Firefox/Liferea) don't like when we embed XHTML anchors
in the description. So adjust the code that creates the changeset
browser title/description to emit a XHTML and plaintext version with
the HTML and Atom output can use, respectively.

Also:

 * Split up @title into @title and @heading as elsewhere
 * Turn the username on the user / user+bbox browser into a link to the userpage
 * Say "Changesets" instead of "Recent changes". Unlike Wikipedia the changes on OSM aren't guaranteed to be recent, they're just going to be the latest
2009-07-29 18:44:51 +00:00
Ævar Arnfjörð Bjarmason
e2abf1254b * Turn the hardcoded #<%= changeset.id %> into t('msg', :id =>
changeset.id). Some languages may have a different numeric
   indicator than the ASCII pound symbol

 * Instead of including a column on :user/edits with a "more" link
   make the changeset ID link to the changeset page.
2009-07-29 11:05:17 +00:00
Ævar Arnfjörð Bjarmason
6c034ee9fe use I18n.l() instead of strftime(): Changeset dates will now appear localized 2009-07-29 10:43:03 +00:00
Tom Hughes
2c5f5a0114 Fix changeset paging. 2009-07-15 11:33:21 +00:00
Tom Hughes
50f78e52e8 Style the table in the feed content. 2009-07-07 23:30:04 +00:00
Tom Hughes
5198500d48 More improvements to Atom feeds. 2009-07-06 00:03:33 +00:00
Tom Hughes
d63f605893 Add some more detail to the changeset Atom feeds. 2009-07-05 23:46:28 +00:00
Tom Hughes
0348316d0b Make subtitle an HTML element. 2009-07-04 12:15:29 +00:00
Tom Hughes
b450ce9d85 Fix links to changeset feeds. 2009-07-04 12:12:05 +00:00
Tom Hughes
336d40f2c5 Switch to using ATOM for changeset feeds. 2009-07-04 11:34:23 +00:00
Thomas Wood
ff03138a97 merge 15807:16012 from rails_port 2009-06-19 22:53:16 +00:00
Matt Amos
09c2725fc9 Fixed typo in 'big changeset' display. 2009-06-15 14:16:19 +00:00
Tom Hughes
3828fa6f9f Really get the links right this time. 2009-06-09 22:06:48 +00:00
Tom Hughes
073faf8950 Use correct format for RSS link. 2009-06-09 22:04:20 +00:00
Tom Hughes
edaddbedae Merge 15722:15806 from head and adjust new views to rails 2 style names. 2009-06-09 21:50:37 +00:00
Tom Hughes
2e2f212472 Rename views to rails 2 style names. 2009-06-09 20:50:14 +00:00
Tom Hughes
3578506797 Add a title to the changeset lists. Closes #1938. 2009-06-08 20:10:09 +00:00
Ævar Arnfjörð Bjarmason
5d471088b4 Wrap 'changeset.changeset.no_comment' in italics with <i></i>. Right
now it's not possible to distinguish between a changeset that has no
comment and one whose comment is equivalent to the text of
'changeset.changeset.no_comment'.
2009-06-08 13:24:29 +00:00
Tom Hughes
6378c21ecb Fixup links to changeset lists. 2009-06-08 11:57:48 +00:00
Tom Hughes
9df991e343 Marge all the changeset list methods together into one. 2009-06-07 16:59:58 +00:00
Tom Hughes
396d8ce313 Use some rails magic to avoid having to duplicate all the changeset
list controller methods for the RSS feeds.
2009-06-07 11:24:11 +00:00
Tom Hughes
e1cb17faa6 Back out the changeset RSS stuff from the head for now. 2009-06-07 08:03:07 +00:00
Ævar Arnfjörð Bjarmason
b1117365d2 Forgot that /history can also be called without a bbox (if one can't be found)
I think the best thing to do here is to simply remove the RSS link, if
someone wants a RSS feed without a bbox they can click the Recent
Changes link and get a feed there.
2009-06-07 02:53:24 +00:00
Ævar Arnfjörð Bjarmason
0d16fd57d4 Add RSS feed for global recent changes & changes within a bbox. Solves #1737
This has so much copy/paste code it hurts, the new list*_rss methods
are just copies of the old list* methods, but see #1927 for that.
2009-06-07 02:39:45 +00:00
Ævar Arnfjörð Bjarmason
bbc700b9ac Don't add a <comments> entry for anonymous users 2009-06-07 02:32:16 +00:00
Ævar Arnfjörð Bjarmason
011237c2c5 Implement /user/$user/edits/rss, partially solves #1737 2009-06-07 01:32:19 +00:00
Tom Hughes
5b0024e61a Fix a few typos in translation resource names. 2009-06-01 08:44:34 +00:00
Tom Hughes
b1078ef268 Correct translation name. 2009-05-31 12:14:40 +00:00
Tom Hughes
3d906fe8c6 Merge 15165:15373 from trunk. 2009-05-31 11:32:32 +00:00
Andy Allan
fddda4efa6 i18n of the changeset views 2009-05-31 10:40:13 +00:00
Harry Wood
3415aa4689 label changesets as (big) based on their bbox area 2009-05-15 16:24:55 +00:00