Commit graph

93 commits

Author SHA1 Message Date
Anton Khorev
6595d43e3c Merge branch 'pull/5117' 2024-09-19 16:49:29 +03:00
Anton Khorev
cb65cd9adc Guess translation scope from controller name if not provided 2024-09-10 10:51:50 +03:00
Anton Khorev
7633657ecb Pass translation scope instead of keys to shared pagination 2024-09-10 10:37:36 +03:00
Nenad Vujicic
ef2c6ef026 Improved error reporting when trace upload fails
Fixes #2630. Added supported file formats below Choose File
(traces/new.html.erb) and improved error / success messages.
2024-09-06 14:07:05 +02:00
Anton Khorev
52324cba89 Disable turbo on all links inside pagination frames except older/newer 2024-08-23 15:00:55 +03:00
Tom Hughes
edddaab122 Use turbo for pagination 2024-08-20 14:44:10 +01:00
mmd-osm
b4952ff7f2 Trace picture with fixed size 2024-07-31 21:31:17 +02:00
mmd-osm
72177a3f20 Trace image with fixed size 2024-07-30 18:05:25 +02:00
Andy Allan
d57dd1f4da
Merge pull request #4813 from AntonKhorev/no-fst-italic
Use font size instead of italic for changeset/trace descriptions
2024-06-19 15:34:14 +01:00
Tom Hughes
161fc8ac47 Replace deprecated text-muted class with text-body-secondary 2024-05-22 11:58:32 +01:00
Anton Khorev
fd3c7b23c5 Use font size instead of italic for changeset/trace descriptions 2024-05-18 18:30:59 +03:00
Anton Khorev
dea9c385b3 Set trace thumbnail link display property to inline-block, fixing focus outline
This makes <a> as tall as <img> inside it.
2024-04-30 17:14:07 +03:00
Anton Khorev
5a9bac33bf Invert trace images in dark mode 2024-04-11 15:52:44 +03:00
Anton Khorev
fe9cd86b17 Move buttons in front of tabs to stack before them on small screens 2024-04-08 14:07:27 +03:00
Anton Khorev
646da787af Take rss/upload buttons out of trace nav tabs list
Prevents these buttons inserting themselves between tabs and content on narrow screens.
2024-04-08 14:07:12 +03:00
Anton Khorev
927335b5c4 Don't stretch trace tabs to full width on small screens 2024-04-08 13:34:15 +03:00
Anton Khorev
e7d82be15e Adapt tab borders to secondary body background 2024-04-07 16:27:31 +03:00
Anton Khorev
addf99f191 Move common pagination code to mixin 2024-03-26 02:36:28 +03:00
Andy Allan
0dc86d6cd4
Merge pull request #4602 from AntonKhorev/no-lego-trace-details
Avoid lego translation in trace time/user/tags string
2024-03-21 14:01:13 +00:00
Anton Khorev
919fcef149 Fix user's traces tab link 2024-03-21 16:43:15 +03:00
Anton Khorev
50047a6c78 Change user's traces tab label to a string without "GPX" 2024-03-21 16:19:05 +03:00
Anton Khorev
76a46824a4 Avoid lego translation in trace time/user/tags string 2024-03-21 01:34:46 +03:00
Anton Khorev
4dcbe9e0a9 Rename trace local in trace description partial 2024-03-20 18:49:10 +03:00
Anton Khorev
1ca91ecbac Use absolute paths to trace icon in traces feed 2024-03-20 18:34:15 +03:00
Anton Khorev
fc270221d3 Simplify links on trace pages 2024-03-20 06:07:24 +03:00
Andy Allan
0195dd60a4 Simplify date display by using friendly_date helpers 2023-11-15 19:46:10 +00:00
Anton Khorev
ed99c62874 Tweak sizes and alignment of traces rss/upload buttons 2023-09-14 21:00:57 +03:00
Anton Khorev
bdb4e025f8 Use start margin instead of empty <li> for gap before traces rss button 2023-09-14 18:02:55 +03:00
Anton Khorev
e143726f1a Combine comments and traces pagination partials 2023-09-09 14:33:59 +03:00
Tom Hughes
c909b29c35 Replace page numbers with ID based selection for trace indexes 2023-07-23 19:28:37 +01:00
Andy Allan
10e035df93 Refactor trace guidance to avoid raw html in translations
Also rearrange to avoid multiple sentences in a heading.
2023-02-22 09:16:17 +00:00
Tom Hughes
7df4a7f8a3 Fix background colour for badges on GPS traces
Fixes #3681
2022-09-09 11:01:20 +01:00
Andy Allan
a9a00acf68 Fix italic font styles
This was missed during the bootstrap 5 upgrade
2022-08-03 19:49:46 +01:00
Andy Allan
0bc9ede6ff Use th tags on trace show table
This brings consistency with other similar tables
2022-07-27 13:09:47 +01:00
Andy Allan
f702d5c426 Remove unnecessary br tags
The margin on the table takes care of the spacing.
2022-07-27 11:59:47 +01:00
Tom Hughes
297d05c63b Merge remote-tracking branch 'upstream/pull/3610' 2022-07-21 18:36:29 +01:00
Andy Allan
4e06fe054a Rework trace index to use secondary-actions
The border between items is familiar UI, so we can keep it, but lets
use the secondary-actions approach instead.

This avoids using left-right specific border, margin and padding
classes
2022-07-20 17:45:35 +01:00
Andy Allan
9e6ecefdb2 Bootstrap 5: Remove the padding from trace nav buttons on larger sizes
If additional py is added when the tabs are laid out in full, then the
other tabs start to become detatched from the rest of the page and a
line appears under the active tab.

We don't need the padding in the horizontal layout, so remove it, and
tweak the size of the padding when collapsed.
2022-07-20 14:43:00 +01:00
Anton Khorev
c66f850cd1 Set trace description input max length 2022-07-15 05:19:00 +03:00
Tom Hughes
9adad9f90d Fix new rubocop warnings 2022-06-14 19:04:39 +01:00
Tom Hughes
6403515897 Replace to_s on TimeWithZone objects with to_formatted_s 2022-01-10 18:59:22 +00:00
Andy Allan
75749cc540 Convert remaining heading titles to use h1
This makes them consistent with all the other pages that use h1
in the `content_for :heading` sections
2021-11-11 15:12:23 +00:00
Tom Hughes
29e9857145 Improve behaviour of secondary action lists when wrapping
Based on https://stackoverflow.com/a/31732902 this ensure that when
a secondary action list wraps the additional lines don't start with
an item delimiter by pushing it to the left, outside of a parent nav
element which then hides it.
2021-08-21 15:38:00 +01:00
Andy Allan
a32854fa52 Wrap the rss and upload buttons in a div, with suitable padding for both vertical and horizontal tab layouts
This ensures it looks right when the tabs are collapsed vertically.
2021-06-16 17:08:26 +01:00
Andy Allan
81ad715474 Rework tabs to use flexbox
This improves the behaviour on small widths, where the tabs stack neatly. It also avoids the use of ml-auto which isn't RTL compatible.

The change in indentation is because it was previously coded with multiple li nested inside another li
2021-06-16 16:48:23 +01:00
Andy Allan
62349d1856 Make tab labels into nouns that describe what's on the tab
I think that works better with tabs, whereas actions (verbs) work better with buttons.
2021-06-16 16:27:45 +01:00
Andy Allan
7996b84380 Rearrange tabs for inter-page consistency
The all traces tab comes first, since it's shown on every page as you click around. Otherwise the tabs appear to be constantly rearranging themselves.
2021-06-16 16:26:25 +01:00
Michal Migurski
33f9b7c55f Fixed remaining erblint complaint 2021-06-16 15:55:55 +01:00
Michal Migurski
21eafac304 Fix erblint complaints 2021-06-16 15:55:55 +01:00
Tobias Jordans
f4e998804d Traces#index: Introduce tab navigation, fix tag-filter
- introduce bootstrap tabs to switch the views
- introduce `content_for :heading_class` to remove the padding below the bootstrap tabs
- update the rss-image to use a svg, adopted from https://icons.getbootstrap.com/icons/rss/ (without the outer border)
- move rss- and new-button away from the view-switching actions
- the `@tag` logic was broken. introduce new link to remove the tag-filter; the tabs keep the filter once given; use params[:tag] directly in the view
- use `&.` syntax nil-safety so we can remove `@display_name`
2021-06-16 15:55:55 +01:00