diff --git a/build.sh b/build.sh index 591ab38..fe444db 100755 --- a/build.sh +++ b/build.sh @@ -20,11 +20,11 @@ OKR_IZBOR=${OKR_IZBOR:-1} if [ "$OKR_IZBOR" = "2" ]; then OKRUZENJE="development" LDFLAGS="-X main.Verzija=dev-${VERZIJA}" - NAZIV="ntech-dev-${VERZIJA}" + NAZIV="ntech-dev" else OKRUZENJE="production" LDFLAGS="-X main.Verzija=${VERZIJA} -s -w" - NAZIV="ntech-${VERZIJA}" + NAZIV="ntech" fi # ────────────────────────────────────────────── diff --git a/web/static/css/main.css b/web/static/css/main.css index 7fb0014..450e158 100644 --- a/web/static/css/main.css +++ b/web/static/css/main.css @@ -288,6 +288,54 @@ body { box-shadow: var(--senka); } +/* primarna dugmad — rade na svim temama */ +.btn-primarno { + display: inline-flex; + align-items: center; + background: var(--sb-akcent); + color: #fff; + border: none; + border-radius: 8px; + padding: 8px 16px; + font-size: 14px; + font-weight: 500; + cursor: pointer; + text-decoration: none; + white-space: nowrap; + transition: opacity 0.2s; +} +.btn-primarno:hover { opacity: 0.85; } + +/* mala primarna dugmad u tabelama */ +.btn-primarno-malo { + display: inline-flex; + align-items: center; + background: var(--sb-akcent); + color: #fff; + border: none; + border-radius: 6px; + padding: 4px 10px; + font-size: 12px; + text-decoration: none; + transition: opacity 0.2s; +} +.btn-primarno-malo:hover { opacity: 0.85; } + +/* avatar krug korisnika u topbaru */ +.avatar-korisnik { + width: 32px; + height: 32px; + border-radius: 50%; + background: var(--sb-akcent); + display: flex; + align-items: center; + justify-content: center; + font-size: 12px; + font-weight: 500; + color: #fff; + flex-shrink: 0; +} + /* input polja — konzistentna za sve teme */ input[type="text"], input[type="email"], diff --git a/web/templates/komponente/sidebar.html b/web/templates/komponente/sidebar.html index 4c7023c..63cac8b 100644 --- a/web/templates/komponente/sidebar.html +++ b/web/templates/komponente/sidebar.html @@ -84,6 +84,12 @@
+ + + Moj profil + + + {{if or (eq .KorisnikUloga "superadmin") (eq .KorisnikUloga "admin")}} @@ -92,12 +98,6 @@ {{end}} - - - Moj profil - - - diff --git a/web/templates/komponente/topbar.html b/web/templates/komponente/topbar.html index f8a658f..9df3587 100644 --- a/web/templates/komponente/topbar.html +++ b/web/templates/komponente/topbar.html @@ -17,8 +17,47 @@ -