Style fixes after Superfish update in !3125. Allow access to the todo create call also with token.

This commit is contained in:
Jyri-Petteri Paloposki 2026-01-09 11:59:14 +02:00
parent d895d218c9
commit c0a528eb10
2 changed files with 24 additions and 2 deletions

View file

@ -1388,3 +1388,25 @@ ul.todo-submenu > li > a {
.recurring_todos .ui-dialog .ui-dialog-title {
float: inherit;
}
.sf-menu {
margin-bottom: 0;
}
.sf-menu a {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.sf-menu li {
background: none !important;
}
.sf-menu ul.todo-submenu {
background: white;
padding: 0.25em;
}
.sf-menu ul.todo-submenu li > a {
padding-left: 24px;
}

View file

@ -1,6 +1,6 @@
class TodosController < ApplicationController
skip_before_action :login_required, :only => [:index, :tag, :list_deferred, :show, :list_hidden, :done]
prepend_before_action :login_or_feed_token_required, :only => [:index, :tag, :list_deferred, :show, :list_hidden, :done]
skip_before_action :login_required, :only => [:index, :create, :tag, :list_deferred, :show, :list_hidden, :done]
prepend_before_action :login_or_feed_token_required, :only => [:index, :create, :tag, :list_deferred, :show, :list_hidden, :done]
append_before_action :find_and_activate_ready, :only => [:index, :list_deferred]
protect_from_forgery :except => :check_deferred