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
d87b7609
Commit
d87b7609
authored
4 years ago
by
xaralis
Browse files
Options
Downloads
Patches
Plain Diff
feat: some more explanation tooltips and better title handling
parent
167202df
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/containers/GlobalStats.jsx
+15
-4
15 additions, 4 deletions
src/containers/GlobalStats.jsx
src/pages/Home.jsx
+2
-1
2 additions, 1 deletion
src/pages/Home.jsx
with
17 additions
and
5 deletions
src/containers/GlobalStats.jsx
+
15
−
4
View file @
d87b7609
...
...
@@ -34,7 +34,10 @@ const GlobalStats = () => {
return
(
<
div
className
=
"bg-grey-50 flex space-x-4 leading-normal px-4 py-2 text-2xs md:text-xs lg:text-sm text-grey-300 whitespace-no-wrap"
>
<
div
>
<
div
data-tip
=
"Počet přihlášených členů Pirátské strany."
data-tip-at
=
"bottom"
>
<
strong
>
{
onlineMembers
}
</
strong
>
{
"
"
}
<
span
>
{
onlineMembers
===
1
&&
"
člen online
"
}
...
...
@@ -42,11 +45,17 @@ const GlobalStats = () => {
{
(
onlineMembers
===
0
||
onlineMembers
>
4
)
&&
"
členů online
"
}
</
span
>
</
div
>
<
div
>
<
div
data-tip
=
"Celkový počet osob, které mají tuto stránku otevřenou."
data-tip-at
=
"bottom"
>
<
strong
>
{
onlineUsers
}
</
strong
>
<
span
>
online celkem
</
span
>
</
div
>
{
groupSizeHalf
!==
null
&&
(
<
div
>
<
div
data-tip
=
"Velikost skupiny členů je důležitá při posuzování podpory návrhů postupu."
data-tip-at
=
"bottom"
>
<
span
>
Vel. skupiny členů je
</
span
>
<
strong
>
{
groupSizeHalf
}
</
strong
>
</
div
>
)
}
...
...
@@ -56,7 +65,9 @@ const GlobalStats = () => {
<
Link
to
=
"/program"
className
=
"font-bold"
title
=
{
nextProgramEntryCaption
}
aria-label
=
{
nextProgramEntryCaption
}
data-tip
=
{
"
Následuje bod
"
+
nextProgramEntryCaption
}
data-tip-at
=
"bottom"
>
{
nextProgramEntryCaption
}
</
Link
>
...
...
This diff is collapsed.
Click to expand it.
src/pages/Home.jsx
+
2
−
1
View file @
d87b7609
...
...
@@ -194,7 +194,8 @@ const Home = () => {
<
article
className
=
"container container--wide py-8 lg:py-24 cf2021 bg-white"
>
<
div
className
=
"cf2021__title flex justify-between"
>
<
h1
className
=
"head-alt-base lg:head-alt-lg"
>
Bod č.
{
programEntry
.
number
}
:
{
programEntry
.
title
}
{
programEntry
.
number
!==
""
&&
`Bod č.
${
programEntry
.
number
}
: `
}
{
programEntry
.
title
}
</
h1
>
{
displayActions
&&
(
<
DropdownMenu
right
triggerSize
=
"lg"
className
=
"pl-4 pt-1 lg:pt-5"
>
...
...
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