Commit graph

382 commits

Author SHA1 Message Date
Tom Hughes
c53db246f6 Merge branch 'rails41' 2014-07-21 08:53:44 +01:00
Florian M. Schäfer
7764f6fc28 Added wikidata links to the browse helper
Analogous to wikipedia tags this links any wikidata tag with its item
page on wikidata.

For now it's restricted to the plain wikidata=* tag (namespaces like
operator:wikidata=* and similar are not yet supported) and only accepts
the values with the format Q<number>.
2014-07-20 15:02:01 +01:00
Tom Hughes
88ff6496a1 Sort tags alphabetically for consistent results 2014-07-04 19:24:25 +01:00
Tom Hughes
aa00e6b81e Decode entities in the title
They will get reencoded (if necessary) when they are output. Fixes #764.
2014-06-18 09:29:17 +01:00
Štefan Baebler
75e07dc5b8 Added telephone links into tag detail browser
International phone numbers become links using the official URI scheme
as per http://tools.ietf.org/html/rfc3966.

It is not limited to key=phone, so it can be used in other keys as well.
2014-06-15 09:31:04 +01:00
Tom Hughes
85e61568da Try harder to find a name in the right language 2014-05-24 12:52:09 +01:00
Tom Hughes
e010a326a8 Wrap the ID in <bdi> tags for RTL locales 2014-05-19 00:29:08 +01:00
Tom Hughes
0d187c5c71 Replace <bdi> and </bdi> with Unicode markers in titles 2014-05-19 00:29:08 +01:00
Tom Hughes
5da273027f Isolate object names from the database with a <bdi> tag
Fixes #743
2014-05-18 17:24:38 +01:00
Tom Hughes
0c80a486b4 Remove an unused method 2014-03-05 22:54:50 +00:00
Tom Hughes
0de7fdb4df Add more tests for BrowseHelper 2014-03-01 16:02:06 +00:00
João G. Packer
18734786a1 Fixed wikipedia link reference to specific sections
When creating  a wikipedia link from a tag, the function
is (correctly) appending "?userlang=#{I18N.lang}" to the URL,
but doing this breaks the reference to a specific section
of a wikipedia article (if there is any).

For example, if the tag is "wikipedia=Article#Section", the function
would create a link to "../Article#Section?uselang=xx", and then the
browser wouldn't be able to correctly find the section. The correct
link result should be "../Article?uselang=xx#Section".

This commit fixes this by verifying if there is a reference to a
specific section of the article, and then putting "?uselang=#{I18N.lang}"
between the article's name and the section name.
2014-03-01 00:26:37 +00:00
Tom Hughes
67dbde0fde Set empty alt text on user images
This stops a stupidly long URL being shown if something goes wrong
with the gravatar redirect back to the default image.
2014-01-12 19:28:01 +00:00
Tom Hughes
fc891d9caa Generate valid URLs for search results with no object attached 2013-12-02 22:25:46 +00:00
Tom Hughes
28a19f5f13 Load gravatar images over https on https pages 2013-11-30 15:38:11 +00:00
John Firebaugh
e91956d0f7 Fix test failures 2013-11-19 10:30:18 -08:00
John Firebaugh
3e305fb162 Fix lego translations 2013-11-12 14:46:47 -08:00
John Firebaugh
9dd230d0bc Refactor browse templates 2013-11-12 13:22:55 -08:00
John Firebaugh
e670da54cb Rationalize browse translation keys 2013-11-12 12:51:33 -08:00
Aaron Lidman
b56fb25068 Restructured notes page 2013-11-11 09:35:58 -08:00
Aaron Lidman
1ae7872ed8 Update title on pushState, closes #33 2013-11-08 16:10:08 -08:00
Aaron Lidman
4b2bd4835d Fixed changeset time inconsistencies 2013-11-07 12:19:00 -08:00
John Firebaugh
d8cf49f0d7 Improve pagination in changeset details 2013-11-06 17:28:39 -08:00
Aaron Lidman
54c1ada23d Fix helper indendation width 2013-11-06 14:03:32 -08:00
Aaron Lidman
694fa065c0 Split come changset display logic into a helper 2013-11-06 13:59:42 -08:00
John Firebaugh
ee9642a28b Link search results directly to browse pages 2013-11-05 12:26:59 -08:00
Eden Halperin
080236a242 narrower sidebar, transparent minimized state, cleaned up search results 2013-11-05 10:17:58 -08:00
John Firebaugh
3d4a137959 Don't rely on body classes so much
Doesn't work well with pushState-based navigation.
2013-10-13 14:46:08 -07:00
John Firebaugh
3d0f9536c4 Add layout-based class to body 2013-10-13 14:46:08 -07:00
John Firebaugh
2ba4bf3744 Add current state to all nav elements 2013-10-13 14:46:06 -07:00
Tom Hughes
be7cc77397 Use image_url instead of nasty hacks 2013-09-24 10:46:32 +01:00
Tom Hughes
2afb1242cc Build an asset manifest for iD 2013-08-24 00:05:21 +01:00
John Firebaugh
8dc16bd8db Make iD default editor
Make iD the default editor for all users that have not specified
a preferred editor, except fall back to P2 on IE.
2013-08-15 16:36:18 -07:00
John Firebaugh
452eabc941 Use full page width when editing with iD 2013-08-10 00:38:46 +01:00
Saman Bemel-Benrud
c3b8897c44 Improve layout and styling of forms 2013-07-08 09:03:17 +01:00
Tom MacWright
597fb5d27f Fix buttons in the richtext help panel 2013-07-08 09:03:16 +01:00
Tom Hughes
8bb7cdb75a Style the "view details" link in search results 2013-05-06 10:48:39 +01:00
Dan Stowell
887f456209 Append "view details" link to Nominatim search results 2013-05-06 10:48:35 +01:00
Tom Hughes
979822f697 Add a "Hide" button to notes when viewed by moderators 2013-04-08 22:32:20 +01:00
Tom Hughes
9d3b419aad Improve styling of the per-user notes list view 2013-02-02 14:29:45 +00:00
Tom Hughes
2ef58f47a2 Improve display of anonymous note comments 2013-02-02 13:04:27 +00:00
Tom Hughes
56db9ca2b7 Merge branch 'master' into notes 2013-02-02 11:00:46 +00:00
Tom Hughes
1f7dd79daf Fix lists in rich text to display properly
Add a "richtext" class to anything which contains text rendered
by our rich text library, and move styles which were only being
applied to diary entries to apply to all rich text.
2013-01-24 14:54:26 +00:00
Tom Hughes
fb5e704b26 Mark hide rules as important 2013-01-16 23:28:08 +00:00
Tom Hughes
3d7eb387a7 Merge branch 'master' into notes
Conflicts:
	Gemfile.lock
	app/assets/stylesheets/common.css.scss
	app/views/browse/_map.html.erb
	app/views/user/view.html.erb
	config/locales/en.yml
2013-01-15 21:11:35 +00:00
Saman Bemel-Benrud
a36f3558dd Site cleanup
I set out to do a quick and dirty typography overhaul to make things
more consistent and a bit cleaner, but I kept running into things I
didn't like, so this lead me down something of a rabbit hole of design
tweaks to the OSM site.

Goals here are to have better content hierarchy, better vertical
rhythm, more consistent UI, cleaner markup with less tables, all while
keeping the basics pretty much intact. There are a lot of things I
didn't touch even though they need to be updated (lots of tables where
stuff shouldn't be tables, mostly).

Basic overview of changes:

I added a new persistent header that helps segment pages. It's now
a lot easier to know what you're looking at. The header has a page
title, a description, plus a submenu of actions.

There is now a pattern of 20px/10px margins and padding for more
rhythm and breathing room throughout the site.

I know there are other problems here or things I've missed - would
love another set of eyes to look over this! I am still getting comfortable
working on the site - it's my first time ever digging into a ruby or rails
so I'm not familiar with the templating language yet.
2013-01-14 21:27:08 +00:00
Tom Hughes
ba5107ebb5 Remove the author_name field from notes 2012-12-03 14:50:54 +00:00
Tom Hughes
5fe5777a58 Move caching of reverse geocodes to describe_location 2012-12-01 18:18:10 +00:00
Tom Hughes
7599f98957 Merge branch 'master' into notes
Conflicts:
	Gemfile
	Gemfile.lock
	app/assets/stylesheets/common.css.scss
	app/helpers/application_helper.rb
2012-11-20 19:08:30 +00:00
Tom Hughes
6aaaf5dddb Rework signup emails a bit
Remove "lego" strings and try and reduce duplication between the
text and HTML versions of the mails.
2012-11-05 09:54:58 +00:00