From: Matt Amos Date: Mon, 26 Jan 2015 13:14:58 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/master' into routing-ui-tweaks-2 X-Git-Tag: live~4237^2~10^2~6 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c3e2e6462f293596aef5d5de18b0a173edc046c7?hp=-c Merge remote-tracking branch 'upstream/master' into routing-ui-tweaks-2 Conflicts: config/locales/de.yml --- c3e2e6462f293596aef5d5de18b0a173edc046c7 diff --combined app/assets/stylesheets/common.css.scss index d6549e740,0ca782ed5..5202e9c87 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@@ -907,15 -907,13 +907,15 @@@ nav.secondary } } -/* Rules for the search box */ +/* Rules for the search and direction forms */ -header .search_form { +header .search_forms, +.directions_form { display: none; } -.search_form { +.search_form, +.directions_form { position: relative; padding: $lineheight/2; background-color: $lightgrey; @@@ -929,31 -927,23 +929,31 @@@ input[type=text] { width: 100%; height: 30px; - border-right: none; - transition: 300ms linear; } + input[type=text].overflow { + border-right: none; + } + input:focus { outline: none; box-shadow: 0px 0px 7px #9ED485; } - input[type=submit] { + input[type=submit].float { float: right; width: auto; min-width: 0; border-radius: 0 2px 2px 0; } + .query_options { + text-align: right; + font-size: 10px; + color: $blue; + } + .describe_location { position: absolute; top: 6px; @@@ -961,33 -951,6 +961,33 @@@ font-size: 10px; color: $blue; } + + .switch_link { + float: right; + width: auto; + min-width: 0; + margin-left: 6px; + } + + img.button { + display: block; + } + + span.force_width { + width: 100%; + padding-right: 25px; + display: block; + } + + select.routing_engines { + min-height: 30px; + margin: 0px 0px 5px 25px; + } + + div.line { + width: 100%; + margin: 0px 0px 5px 0px; + } } /* Rules for the map key which appears in the popout sidebar */ @@@ -1010,7 -973,7 +1010,7 @@@ border-bottom: $keyline; cursor: pointer; &:first-child { border-top: $keyline; } - &.selected { background: #FFFFE6; } + &.selected { background: $list-highlight; } } .search_details { @@@ -1026,47 -989,6 +1026,47 @@@ color: #f00; } +/* Rules for routing */ + +#sidebar_content>table { + padding: 5px 20px 10px 15px; + width: 100%; + border-collapse: separate; +} + +div.direction { + background-image: image-url('routing-sprite.png'); + width: 20px; + height: 20px; + background-repeat: no-repeat; +} +@for $i from 1 through 17 { +div.direction.i#{$i} { background-position: #{($i)*-20+20}px 0px; } +} + +p#routing_summary { + padding: 0 $lineheight $lineheight/4; +} + +td.instruction, td.distance { + padding-top: $lineheight/5; + padding-bottom: $lineheight/5; + border-bottom: 1px solid #DDD; +} +td.distance { + color: #BBB; + text-align: right; + font-size: x-small; +} +tr.turn { + cursor: pointer; +} +tr.turn:hover { + background: $list-highlight; +} +.routing_engines, #route_from, #route_to { margin-left: 25px; } +.routing_marker { width: 15px; position: absolute; } + /* Rules for entity history */ #sidebar_content { @@@ -1088,7 -1010,7 +1088,7 @@@ border-bottom: 1px solid #ddd; cursor: pointer; - &.selected { background: #FFFFE6; } + &.selected { background: $list-highlight; } /* color is derived from changeset bbox fillColor in history.js */ } @@@ -1245,7 -1167,7 +1245,7 @@@ } &.selected { - background: #FFFFE6; + background: $list-highlight; } } } @@@ -1306,15 -1228,6 +1306,15 @@@ } } +/* Rules for the routing sidebar */ + +#sidebar_content { + #routing_credit { + text-align: center; + padding: 0.5em; + } +} + /* Rules for edit pages */ .site-edit { @@@ -2109,7 -2022,8 +2109,8 @@@ a.button input[type="submit"], input[type="button"], input[type="reset"], - .button { + .button, + .button_to { box-sizing: border-box; float: left; border-radius: 0; @@@ -2122,30 -2036,36 +2123,36 @@@ overflow: hidden; } input:first-child, - .button:first-child { + .button:first-child, + .button_to:first-child { border-radius:2px 0 0 2px; } input:last-child, - .button:last-child { + .button:last-child, + .button_to:last-child { border-radius:0 2px 2px 0; border-right-width: 0; } input:only-child, .button:only-child, + .button_to:only-child, *[value="Hide"] + input:last-child, - *[value="Hide"] + .button:last-child { + *[value="Hide"] + .button:last-child, + *[value="Hide"] + .button_to:last-child { border-radius:2px; border-right-width: 0; } /* if a 3-button set has a hidden middle button */ *[value="Hide"] + input:nth-child(3), - *[value="Hide"] + .button:nth-child(3) { + *[value="Hide"] + .button:nth-child(3), + *[value="Hide"] + .button_to:nth-child(3) { border-radius:0 2px 2px 0; border-right-width: 0; } /* if a 3-button set starts with a hidden button */ *[value="Hide"] + input:nth-child(2):not(:last-child), - *[value="Hide"] + .button:nth-child(2):not(:last-child) { + *[value="Hide"] + .button:nth-child(2):not(:last-child), + *[value="Hide"] + .button_to:nth-child(2):not(:last-child) { border-radius:2px 0 0 2px; border-right-width: 1px; } diff --combined config/initializers/assets.rb index c90054b0a,df86f2b9d..ef7efcbb9 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@@ -3,11 -3,13 +3,14 @@@ # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = '1.0' + # Add additional assets to the asset load path + # Rails.application.config.assets.paths << Emoji.images_path + # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. Rails.application.config.assets.precompile += %w( index.js browse.js welcome.js fixthemap.js ) Rails.application.config.assets.precompile += %w( user.js diary_entry.js ) +Rails.application.config.assets.precompile += %w( routing.js ) Rails.application.config.assets.precompile += %w( large-ltr.css small-ltr.css print-ltr.css ) Rails.application.config.assets.precompile += %w( large-rtl.css small-rtl.css print-rtl.css ) Rails.application.config.assets.precompile += %w( leaflet-all.css leaflet.ie.css ) diff --combined config/locales/de.yml index 8486fabec,406348f8a..1ca436b54 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@@ -38,6 -38,7 +38,7 @@@ # Author: The Evil IP address # Author: Thomas Bohn # Author: Umherirrender + # Author: Woodpeck --- de: time: @@@ -154,11 -155,17 +155,17 @@@ way_paginated: Wege (%{x}–%{y} von %{count}) relation: Relationen (%{count}) relation_paginated: Relationen (%{x}–%{y} von %{count}) + comment: Kommentare (%{count}) + hidden_commented_by: Versteckter Kommentar von %{user} vor + %{when} + commented_by: Kommentar von %{user} vor %{when} changesetxml: Änderungssatz-XML osmchangexml: osmChange XML feed: title: 'Änderungssatz: %{id}' title_comment: Änderungssatz %{id} - %{comment} + join_discussion: Melde dich an, um der Diskussion beizutreten + discussion: Diskussion node: title: 'Knoten: %{name}' history_title: 'Knotenchronik: %{name}' @@@ -236,6 -243,11 +243,11 @@@ reopened_by_anonymous: Reaktiviert von anonym vor %{when} hidden_by: Versteckt von %{user} vor %{when} + query: + title: Objektabfrage + introduction: Klicke auf die Karte, um benachbarte Objekte zu finden. + nearby: Objekte in der Nähe + enclosing: Einschließende Objekte changeset: changeset_paging_nav: showing_page: Seite %{page} @@@ -266,6 -278,13 +278,13 @@@ timeout: sorry: Es hat leider zu lange gedauert, die von dir angeforderten Änderungssätze abzurufen. + rss: + title_all: Diskussion zum OpenStreetMap-Änderungssatz + title_particular: Diskussion zum OpenStreetMap-Änderungssatz Nr. %{changeset_id} + comment: Neuer Kommentar zum Änderungssatz Nr. %{changeset_id} von %{author} + commented_at_html: vor %{when} aktualisiert + commented_at_by_html: vor %{when} durch %{user} aktualisiert + full: Vollständige Diskussion diary_entry: new: title: Selbst Bloggen @@@ -558,7 -577,7 +577,7 @@@ primary_link: Bundesstraße-Auffahrt proposed: Geplante Straße raceway: Rennstrecke - residential: Straße + residential: Wohnstraße rest_area: Rastplatz road: Straße secondary: Landesstraße @@@ -769,6 -788,8 +788,8 @@@ tram: Straßenbahn tram_stop: Haltestelle yard: Rangierbahnhof + route: + bus: Buslinie shop: alcohol: Spirituosenladen antiques: Antiquitätengeschäft @@@ -977,10 -998,6 +998,6 @@@ text: Spenden learn_more: Mehr erfahren more: Mehr - sotm_header: State of the Map 2014 - sotm_line_1: 8. Jahreskonferenz - sotm_line_2: 7. bis 9. November 2014 - sotm_line_3: Buenos Aires, Argentinien license_page: foreign: title: Über diese Übersetzung @@@ -1298,6 -1315,21 +1315,21 @@@ commented_note: '%{commenter} hat einen Hinweis in der Nähe von %{place}, den du kommentiert hattest, reaktivert.' details: Weitere Details über den Hinweis findest du unter %{url}. + changeset_comment_notification: + greeting: Hallo, + commented: + subject_own: '[OpenStreetMap] %{commenter} hat zu einem deiner Änderungssätze + kommentiert' + subject_other: '[OpenStreetMap] %{commenter} hat zu einem Änderungssatz kommentiert, + an dem du interessiert bist' + your_changeset: '%{commenter} hinterließ einen Kommentar zu einem deiner Änderungssätze, + erstellt am %{time}' + commented_changeset: '%{commenter} hinterließ einen Kommentar zu einem Kartenänderungssatz, + den du beobachtest, erstellt von %{changeset_author} am %{time}' + partial_changeset_with_comment: mit dem Kommentar „%{changeset_comment}“ + partial_changeset_without_comment: ohne Kommentar + details: Weitere Einzelheiten über den Änderungssatz können gefunden werden + unter %{url}. message: inbox: title: Posteingang @@@ -1414,12 -1446,6 +1446,12 @@@ where_am_i: Wo bin ich? where_am_i_title: Die momentane Position mit der Suchmaschine anzeigen submit_text: Los + get_directions: "Route berechnen" + get_directions_title: "Routenberechnung zwischen zwei Orten" + close_directions: "Schliessen der Route" + close_directions_title: "Schliessen des Routenmenus" + from: "Von" + to: "Nach" key: table: entry: @@@ -2275,6 -2301,15 +2307,15 @@@ gewählt werden map_notes_zoom_in_tooltip: Vergrößere die Karte, um die Fehler zu sehen. map_data_zoom_in_tooltip: Vergrößere die Karte, um die Daten zu sehen. + queryfeature_tooltip: Objektabfrage + queryfeature_disabled_tooltip: Für Objektabfrage vergrößern + changesets: + show: + comment: Kommentar + subscribe: Abonnieren + unsubscribe: Abbestellen + hide_comment: verstecken + unhide_comment: einblenden notes: new: intro: Fehlt etwas oder hast du einen Fehler gefunden? Bitte verschiebe den @@@ -2293,40 -2328,13 +2334,47 @@@ comment: Kommentar edit_help: Wähle eine höhere Zoomstufe und verschiebe die Karte an einen Ort, den du bearbeiten möchtest, und klicke hier. + directions: + directions: "Fahranweisungen: " + engines: + graphhopper_bicycle: "Fahrrad (GraphHopper)" + graphhopper_foot: "Fuss (GraphHopper)" + mapquest_bicycle: "Fahrrad (MapQuest)" + mapquest_foot: "Fuss (MapQuest)" + mapquest_car: "Auto (MapQuest)" + osrm_car: "Auto (OSRM)" + distance: "Distanz:" + time: "Zeit:" + errors: + no_route: "Wir konnten keine Strecke zwischen diesen beiden Orten berechnen." + no_place: "Wir konnten den Ort nicht finden." + instructions: + continue_on: "Weiter auf " + slight_right: "Rechts halten auf " + turn_right: "Rechts abbiegen auf " + sharp_right: "Hart rechts auf " + uturn: "U-turn along " + sharp_left: "Hart links auf " + turn_left: "Links abbiegen auf " + slight_left: "Links halten auf " + via_point: "(via point) " + follow: "Folge " + roundabout: "Im Kreisverkehr nehme " + leave_roundabout: "Verlasse den Kreisverkehr - " + stay_roundabout: "Stay on roundabout - " + start: "Start at end of " + destination: "Ziel erreicht" + against_oneway: "Go against one-way on " + end_oneway: "Ende der Einbahnstrasse " + unnamed: "(unbekannt)" + courtesy: "Fahranweisungen stammen von %{link}" + query: + node: Knoten + way: Weg + relation: Relation + nothing_found: Keine Funktionen gefunden + error: 'Fehler beim Kontaktieren von %{server}: %{error}' + timeout: Zeitüberschreitung beim Kontaktieren von %{server} redaction: edit: description: Beschreibung