Commit Graph

39 Commits

Author SHA1 Message Date
Cinder
7bdabdf2b4 [CSS] Clean up colors and implement colorblind palettes (#682) 2024-07-28 18:12:41 -07:00
Earlopain
3812705b84
[Takedowns] Correct capitalization for DeviantArt 2023-10-30 16:35:00 +01:00
Earlopain
9e6ac153f2
[Cleanup] Replace usage of content_tag(:abc) with tag.abc
Most places use this syntax, be consistent about it
2023-08-06 18:37:37 +02:00
Earlopain
fc066a3724
[Takedowns] Move links to wiki page instead of config 2023-05-18 21:40:16 +02:00
Earlopain
d1cf869744
[Cleanup] Unify timestamp generation 2023-05-16 21:14:57 +02:00
Earlopain
8e7914aad8
[Search] Add the submit button automatically 2023-05-07 13:06:00 +02:00
Earlopain
6e5e186cb9
[Users] Fix mods not seeing takedown source on index page 2023-04-28 17:30:06 +02:00
Earlopain
839ad27782
[Header] Render navbar <menu>s outside the partials 2023-03-03 16:22:51 +01:00
Earlopain
f6b53dd0d3
Merge branch 'moderator-role' 2023-01-11 17:05:37 +01:00
Earlopain
9afc1949fa
[CSS] Clean up duplicate table classes
width: 100% is already part of the class.
Remove duplicate classes .table/.striped and exclusivly use the more common one.
Add this class to PostReportReasons/Help, which were missing it.
2022-12-29 16:36:33 +01:00
Earlopain
1a94acb6f6
[Users] Moderator permission tweaks 2022-12-23 16:35:37 +01:00
Earlopain
87500a4f01
[Forms] Use a custom form builder
This will  make it possible to write some custom logic and use it everywhere,
like generating submit buttons with text depending on the model state
2022-07-13 20:48:14 +02:00
Earlopain
5d1b7b8f82
[Search] Remove remaining manually set form parameters 2022-04-15 10:27:13 +02:00
Earlopain
721b969645
[Search] Make the form non hideable on dedicated search routes
This will be useful later when the form code gets unified
2022-04-02 21:22:42 +02:00
Earlopain
bad4340e15
[DText] Prevent zalgo from overflowing
Deeply nested sections still exceed the expected width.
2021-11-17 17:53:11 +01:00
Earlopain
b50f6581b0
[Takedowns] Show correct post url example 2021-07-01 15:40:02 +02:00
Earlopain
10de8e6acc
[Templates] Simplify hideable form search
Generate the boilerplate around the form in a seperate partial.
Also fixes some flashing when the form should be displayed on load
since that doesn't happen with js anymore
2021-06-22 21:05:01 +02:00
Earlopain
d185bac6b2
[Templates] Put hide search at the same position of show search
Previously hiding was inside the form itself, putting it at another location from
from the show link which was midly annoying
Going to clean this up a bit in the next commit
2021-06-22 18:21:28 +02:00
Earlopain
3196590c4e
[Takedowns] Hide disallowed search parameters for normal users
You can't even start a search right now because order is forbidden.
If takedown searches for normal users is even needed is another thing
2021-06-22 18:04:20 +02:00
Earlopain
78d23d0972
[Takedowns] Hide delete header when not admin 2021-06-22 15:39:16 +02:00
Earlopain
da29304039 [Template] Add a bunch of missing titles
This also adds usefull information to a few, like which tag you're editing
2021-03-21 19:02:28 +01:00
Earlopain
9b7c4db852 [Template] Don't explicitly add app_name in every title
- Use a helper function to add it to every title (except the root path
which is just the app_name)
- Remove useless set_title function in application_controllerller
2021-03-21 16:58:35 +01:00
Kira
2593013b29 [UI] Apply dtext styling to more areas 2020-04-26 06:55:02 -07:00
Kira
c469827712 [Takedowns] Add back link to takedown policy during new 2020-04-16 16:43:46 -07:00
Kira
35061b2898 [Takedowns] Fix status coloring 2020-04-16 16:37:53 -07:00
Kira
46a9a55016 Fix display of takedown links 2020-03-10 14:35:20 -07:00
Kira
01a7c63e6d Search for takedowns 2020-03-07 15:11:29 -08:00
Kira
17d5c8ac89 More dead .js files removed 2020-02-21 21:40:37 -08:00
Kira
ff66e9e9f5 Confirmed deletion conversions 2020-02-21 21:40:37 -08:00
Kira
45aeba3e14 Quick confirmed deletion action 2020-02-21 21:40:37 -08:00
Kira
a4f9f10658 Remove link_to_function 2020-02-21 21:40:37 -08:00
Kira
2e8595141b Move takedowns to not use inline event handlers 2020-02-21 21:40:37 -08:00
Kira
b532ec88fa Replace inline scripts with js tags with nonce 2020-02-21 21:40:37 -08:00
Kira
beadf0a258 Streamline the takedown process 2019-08-10 20:49:57 -07:00
Kira
bf4bc71b7e Fix regression in JS linking
This fixes a regression introduced in PR #75 where I mistakenly
removed the exports from the application pack. These were being
placed into the Danbooru namespace object as a library and referenced
by various items across the site.

This brings them back and converts the takedown and blip services
to use the namespace.
2019-05-04 11:23:43 -07:00
Kira
0f0a2c22c5 Internalize vendored scripts and css
This avoids leaking usage data and also prevents us from having to
wait on the extremely slow public FA CDN.

These may be distributed to the static content CDN later, so
have integrity markers applied to them ahead of time.

spark-md5 may be removed and integrated directly into the bundle
when the new upload page is implemented, and is currently unused.
2019-05-04 10:59:28 -07:00
Kira
b79b8e1f62 Silly mistakes in takedown code 2019-03-29 23:52:47 -07:00
Kira
7b97883d29 Finish up takedowns 2019-02-27 03:47:23 -08:00
Kira
118459af1b Takedowns 2019-02-23 08:45:10 -08:00