Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cf2021
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vojtech.pikal
cf2021
Commits
a250460b
Commit
a250460b
authored
4 years ago
by
xaralis
Browse files
Options
Downloads
Patches
Plain Diff
feat: improve discussion-related messages
parent
c133a998
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pages/Home.jsx
+9
-16
9 additions, 16 deletions
src/pages/Home.jsx
with
9 additions
and
16 deletions
src/pages/Home.jsx
+
9
−
16
View file @
a250460b
...
...
@@ -11,7 +11,6 @@ import {
renameProgramPoint
,
}
from
"
actions/program
"
;
import
{
DropdownMenu
,
DropdownMenuItem
}
from
"
components/dropdown-menu
"
;
import
ErrorMessage
from
"
components/ErrorMessage
"
;
import
{
AlreadyFinished
,
BreakInProgress
,
...
...
@@ -293,30 +292,24 @@ const Home = () => {
<
div
className
=
"flex flex-col xl:flex-row xl:justify-between xl:items-center mb-4"
>
<
h2
className
=
"head-heavy-xs md:head-heavy-sm whitespace-no-wrap"
>
<
span
>
Příspěvky v rozpravě
</
span
>
{
!
programEntry
.
discussionOpened
&&
(
<
i
className
=
"ico--lock text-black ml-2 opacity-50 hover:opacity-100 transition duration-500 text-xl"
title
=
"Rozprava je uzavřena"
/>
)
}
</
h2
>
<
PostFilters
/>
</
div
>
{
!
programEntry
.
discussionOpened
&&
(
!
isAuthenticated
||
(
isAuthenticated
&&
!
user
.
isBanned
))
&&
(
<
p
className
=
"leading-normal"
>
<
p
className
=
"alert alert--light items-center mb-4 elevation-4"
>
<
i
className
=
"alert__icon ico--lock text-lg"
/>
Rozprava je uzavřena - příspěvky teď nelze přidávat.
</
p
>
)
}
{
programEntry
.
discussionOpened
&&
isAuthenticated
&&
user
.
isBanned
&&
(
<
ErrorMessage
className
=
"mt-8"
>
Jejda! Nemůžeš přidávat příspěvky, protože máš ban. Vyčkej než
ti ho předsedající odebere.
</
ErrorMessage
>
)
}
{
programEntry
.
discussionOpened
&&
isAuthenticated
&&
user
.
isBanned
&&
(
<
p
className
=
"alert alert--error items-center mb-4"
>
<
i
className
=
"alert__icon ico--warning text-lg"
/>
Jejda! Nemůžeš přidávat příspěvky, protože máš ban. Vyčkej než ti
ho předsedající odebere.
</
p
>
)
}
{
programEntry
.
discussionOpened
&&
isAuthenticated
&&
!
user
.
isBanned
&&
<
AddPostForm
className
=
"mb-8"
/>
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment