diff --git a/editor.py b/editor.py index 1f1414a..11376e4 100644 --- a/editor.py +++ b/editor.py @@ -37,6 +37,8 @@ EDIT_PAGE_HEADING = os.environ.get("EDIT_PAGE_HEADING", "Aufnahme bearbeiten") THEME_FILE = Path(os.environ.get("THEME_FILE", "/config/theme.json")) LOGO_FILE = Path(os.environ["LOGO_FILE"]) if os.environ.get("LOGO_FILE") else None FAVICON_FILE = Path(os.environ["FAVICON_FILE"]) if os.environ.get("FAVICON_FILE") else None +GIT_REPO_URL = os.environ.get("GIT_REPO_URL", "") +USER_URL = os.environ.get("USER_URL", "") DEFAULT_THEME = {'background': '#111', 'surface': '#181818', 'surface_alt': '#222', 'surface_dark': '#0b0b0b', 'text': '#eee', 'text_secondary': '#ccc', 'text_muted': '#aaa', 'text_faint': '#777', 'border': '#333', 'border_subtle': '#2b2b2b', 'control': '#333', 'control_hover': '#444', 'primary': '#1769aa', 'primary_hover': '#1f7fc2', 'accent': '#ffcc33', 'success': '#173d24', 'success_text': '#b8f5c9', 'warning': '#6b4e00', 'danger': '#8b0000', 'danger_soft': '#4a2020', 'danger_soft_hover': '#6a2b2b', 'error': '#4a1b1b', 'error_text': '#ffd0d0', 'recording': '#b00000', 'recording_border': '#3a2222', 'selection': 'rgba(80,150,255,.16)', 'shadow': '#000', 'scroll_thumb': '#777', 'scroll_thumb_hover': '#999', 'scroll_thumb_active': '#aaa', 'live_surface': '#1d1111', 'table_header': '#252525', 'table_text': '#eee', 'footer': '#666', 'white': '#fff','surface_modal':'#202020','overlay':'rgba(0,0,0,.78)'} @@ -73,6 +75,8 @@ def branding_context(): "theme_css": theme_css(), "logo_url": "/branding/logo" if LOGO_FILE and LOGO_FILE.is_file() else None, "favicon_url": "/branding/favicon" if FAVICON_FILE and FAVICON_FILE.is_file() else None, + "git_repo_url": GIT_REPO_URL, + "user_url": USER_URL, } NORMALIZE = os.environ.get("NORMALIZE", "true").lower() not in ("0", "false", "no") @@ -869,6 +873,11 @@ EDITOR_HTML = """ .site-logo { max-width:140px; max-height:48px; object-fit:contain; display:block; flex:0 0 auto; } .edit-logo { width:80px !important; height:28px !important; max-width:80px !important; max-height:28px !important; min-width:80px; min-height:28px; object-fit:contain !important; display:block !important; margin:0 0 10px 0; } .site-header h1 { margin:0; } +.footer { margin-top:24px; color:var(--color-footer); font-size:13px; text-align:center; } +.footer-links { display:flex; justify-content:center; align-items:center; gap:16px; margin-top:8px; } +.footer-links a { color:var(--color-footer); text-decoration:none; } +.footer-links a:hover { color:var(--color-text); text-decoration:underline; } +.git-icon { display:inline-block; margin-right:4px; font-size:16px; line-height:1; } body { margin:0; padding:24px; background:var(--color-background); color:var(--color-text); font-family:Arial,Helvetica,sans-serif; } .container { max-width:1400px; margin:0 auto; } h1 { margin:0 0 6px; font-size:28px; } @@ -1346,6 +1355,21 @@ async function submitWithMetadata() { } render(); + +