Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/init.janet
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@
[:main
[:h1 (presentation :title)]
[:section
[:h1 "Kapitoly"]
[:h1 "પ્રકરણો"]
(seq [chapter :in (presentation :chapters)]
[:p
[:h3 (chapter :title)]
[:span (length (chapter :slides)) " slajdy"]])]
[:nav {:class "f-row"} [:a {:href "/edit"} "editovat"] [:a {:href "/start"} "start"]]])
[:span (length (chapter :slides)) " સ્લાઇડ્સ"]])]
[:nav {:class "f-row"} [:a {:href "/edit"} "ફેરફાર કરવા માટે"] [:a {:href "/start"} "start"]]])

# Handlers
(defn /index
Expand All @@ -110,7 +110,7 @@
[&]
(define :view)
(http/page app {:content (http/page form {:content (get-in view [:presentation :content])
:message "Editace prezentace!"})}))
:message "પ્રસ્તુતિ સંપાદિત કરી રહ્યાં છીએ!"})}))

(defn /start
"Start presentation"
Expand Down
2 changes: 1 addition & 1 deletion project.janet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(declare-project
:name "smw"
:author "Josef Pospíšil <josef.pospisil@laststar.eu>"
:author "Trupeshkumar Patel <trupesh.k.patel@gmail.com>"
:description "See my work"
:license "MIT"
:repo "https://git.sr.ht/~pepe/smw"
Expand Down
4 changes: 2 additions & 2 deletions templates/form.temple
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<main>
<h1>{- (if (args :message) (args :message) "Vytvořte svojí prezentaci, prosím!") -}</h1>
<h1>{- (if (args :message) (args :message) "કૃપા કરીને તમારી પ્રસ્તુતિ બનાવો!") -}</h1>
<form action="/" method="POST">
<textarea name="presentation">{- (args :content) -}</textarea>
<button>Ulož!</button>
<button>સાચવો!</button>
</form>
</main>
4 changes: 2 additions & 2 deletions templates/navigation.temple
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<button class="iconbutton" hx-get="/next-slide" hx-swap="none" {- (if (args :disabled-next-slide) "disabled") -}>→</button>
<button class="iconbutton" hx-get="/previous-chapter" hx-swap="none" {- (if (args :disabled-previous-chapter) "disabled") -}>↞</button>
<button class="iconbutton" hx-get="/next-chapter" hx-swap="none" {- (if (args :disabled-next-chapter) "disabled") -}>↠</button>
<span>kapitola: {{ (get-in args [:presentation :chapters (args :chapter) :title]) }}</span>
<span>slajd: {{ (inc (args :slide)) }}</span>
<span>પ્રકરણ: {{ (get-in args [:presentation :chapters (args :chapter) :title]) }}</span>
<span>સ્લાઇડ: {{ (inc (args :slide)) }}</span>
</nav>
4 changes: 2 additions & 2 deletions templates/presentation.temple
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</head>
<body>
<header class="f-row align-items:center">
<a href="/">domů</a>
<a href="/start">restartovat</a>
<a href="/">ઘર</a>
<a href="/start">પુનઃપ્રારંભ</a>
<h1>{{ (get-in args [:presentation :title]) }}</h1>
{- (http/page navigation args) -}
</header>
Expand Down