mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Reorganize Settings sections + add LLM model/prompt configs (#116)
* Reshuffle/organize settings UI * Settings: AI prompt display/minor touch-ups * API key settings tests * Moved import/export together * Collapsible LLM prompt DIVs * Add export tests
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
class ImportsController < ApplicationController
|
||||
include SettingsHelper
|
||||
|
||||
before_action :set_import, only: %i[show publish destroy revert apply_template]
|
||||
|
||||
def publish
|
||||
@@ -11,7 +13,11 @@ class ImportsController < ApplicationController
|
||||
|
||||
def index
|
||||
@imports = Current.family.imports
|
||||
|
||||
@exports = Current.user.admin? ? Current.family.family_exports.ordered.limit(10) : nil
|
||||
@breadcrumbs = [
|
||||
[ "Home", root_path ],
|
||||
[ "Import/Export", imports_path ]
|
||||
]
|
||||
render layout: "settings"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user