4c736096ae
Show search source badges only with show_sources param
...
The badges are a debugging aid - render them only when explicitly
requested via ?show_sources=1 instead of on every search.
2026-08-23 10:49:32 +02:00
323b7004ed
Expose which search strategy produced each result
...
query_packages now assigns @search_sources - a hash mapping package
ids to the matching strategy that put them into the results: :exact,
:name_prefix, :name_contains, :semantic or :fulltext. The grid and
list views render a small badge with a humanized label per result,
making the search tiers observable. semantic_results() was folded
into search_packages() so each branch tags its own source. Adds the
rails-controller-testing gem for assigns() in tests.
2026-08-23 10:39:50 +02:00
b601b2bbb6
move shrine files out of public. use x-sendfile to send files for security.
2025-06-16 00:24:11 +02:00
d76bf164f1
lucene icons added, styling fixed
2025-05-09 00:41:11 +02:00
95223e3ba7
Shorter status text
2021-03-10 01:18:17 +01:00
f31502c333
Added colors to status label of a screenshot
2021-03-10 01:04:06 +01:00
7a3b65fe50
Authorisation management using CanCanCan added
2021-02-28 21:36:46 +01:00
9a91229336
Fixed size and choice of dummy images
2021-02-14 16:41:52 +01:00
dd4d105b87
Added screenshots_visible_to_user helper
2020-11-23 00:22:04 +01:00
427cdf87d7
Moved Screenshot.adminstatus to status_text helper
...
This change allows the use of fa_icon helpers
2020-11-23 00:21:17 +01:00
f1cff3883d
small_img() helper added
2020-11-01 23:24:07 +01:00
77d8daedea
Added pagination of screenshots to reduce loading times
2020-10-25 02:21:12 +02:00
adb76650da
Design overhaul of details page
2020-10-20 00:22:41 +02:00
986b42145e
Slight design improvements
2020-10-19 21:19:49 +02:00
13d3517935
Added screenshot_uploaded_by_current_user? helper function
2020-08-21 19:10:41 +02:00
dd02ed0a82
Unused def commented out
2020-08-17 01:49:52 +02:00
eb8f27d9e6
Fix handling of user session and user-uploaded images
2020-08-17 01:49:20 +02:00
Christoph Haas
084f8e5b22
Fixed selection of shown screenshots for anonymous uploaders
2018-08-07 19:43:30 +02:00
fe4aa05992
Show all public images too when a user is logged in
2018-05-28 17:30:10 +02:00
dd7527691e
Dammit… I can't remember what I changed and why
2018-05-06 19:07:55 +02:00
339bb0427f
Showing reviews on package's details page from Ubuntu
2016-08-16 12:50:03 +02:00
e5ceab72a9
Show newest screenshots first
2016-06-13 17:57:03 +02:00
16999260ca
Dropdown on details page allows image management for users and admins
2016-04-07 17:01:00 +02:00
ba5a89a26a
Moved screenshots_visible_to_user to model
2016-04-06 16:41:52 +02:00
6192e1bc3b
Creating query to get screenshots visible to a user
2016-03-05 15:55:24 +01:00
c2a695aec0
Packages controller added
2013-07-27 01:23:28 +02:00