Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rescheduled 🗓️
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
c3lingo
rescheduled 🗓️
Commits
56d7cc96
Verified
Commit
56d7cc96
authored
2 months ago
by
Felix Eckhofer
Browse files
Options
Downloads
Patches
Plain Diff
Make buttons on session more recognizable
Add light-gray border and some drop shadow. Fixes
#7
parent
ffa842ae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/views/sessions/_session.html.erb
+5
-5
5 additions, 5 deletions
app/views/sessions/_session.html.erb
with
5 additions
and
5 deletions
app/views/sessions/_session.html.erb
+
5
−
5
View file @
56d7cc96
...
...
@@ -22,26 +22,26 @@
</span>
<ul
class=
"absolute top-0 right-0 text-2xl only-loggedin hidden flex"
>
<li>
<%=
link_to
conference_session_candidates_path
(
session
.
conference
,
session
),
class:
"only-candidate hidden mx-0.5 p-0.5 bg-rose-400 bg-opacity-30 hover:bg-opacity-50 rounded-md border border-
t
ra
nsparent
hover:border-rose-400"
,
title:
"Withdraw"
,
aria_label:
"Withdraw"
,
data:
{
turbo_method: :delete
,
turbo_frame:
dom_id
(
session
)
},
method: :delete
do
%>
<%=
link_to
conference_session_candidates_path
(
session
.
conference
,
session
),
class:
"only-candidate hidden mx-0.5 p-0.5 bg-rose-400 bg-opacity-30 hover:bg-opacity-50 rounded-md
shadow shadow-md
border border-
g
ra
y-900/20
hover:border-rose-400"
,
title:
"Withdraw"
,
aria_label:
"Withdraw"
,
data:
{
turbo_method: :delete
,
turbo_frame:
dom_id
(
session
)
},
method: :delete
do
%>
🙅
<%
end
%>
</li><li>
<%=
link_to
conference_session_candidates_path
(
session
.
conference
,
session
),
class:
"only-no-candidate hidden mx-0.5 p-0.5 bg-green-400 bg-opacity-30 hover:bg-opacity-50 rounded-md border border-
t
ra
nsparent
hover:border-green-400"
,
title:
"Volunteer Myself"
,
aria_label:
"Volunteer Myself"
,
data:
{
action:
"session#verifyLanguages"
,
turbo_method: :post
,
turbo_frame:
dom_id
(
session
)
}
do
%>
<%=
link_to
conference_session_candidates_path
(
session
.
conference
,
session
),
class:
"only-no-candidate hidden mx-0.5 p-0.5 bg-green-400 bg-opacity-30 hover:bg-opacity-50 rounded-md
shadow shadow-md
border border-
g
ra
y-900/20
hover:border-green-400"
,
title:
"Volunteer Myself"
,
aria_label:
"Volunteer Myself"
,
data:
{
action:
"session#verifyLanguages"
,
turbo_method: :post
,
turbo_frame:
dom_id
(
session
)
}
do
%>
🙋
<%
end
%>
</li><li>
<%=
form_with
url:
conference_session_candidates_path
(
session
.
conference
,
session
),
method: :post
,
class:
"inline"
,
data:
{
turbo_frame:
dom_id
(
session
)
}
do
|
form
|
%>
<%=
link_to
conference_session_candidates_path
(
session
.
conference
,
session
),
class:
"only-no-candidate hidden mx-0.5 p-0.5 bg-green-400 bg-opacity-30 hover:bg-opacity-50 rounded-md border border-
t
ra
nsparent
hover:border-green-400"
,
title:
"Volunteer (with special skills)"
,
aria_label:
"Volunteer (with special skills)"
,
data:
{
action:
"session#verifyLanguages session#submitWithPrompt"
,
prompt:
"Why are you especially qualified? (Please keep it short, thanks)"
,
turbo_prefetch
:"false"
}
do
%>
<%=
link_to
conference_session_candidates_path
(
session
.
conference
,
session
),
class:
"only-no-candidate hidden mx-0.5 p-0.5 bg-green-400 bg-opacity-30 hover:bg-opacity-50 rounded-md
shadow shadow-md
border border-
g
ra
y-900/20
hover:border-green-400"
,
title:
"Volunteer (with special skills)"
,
aria_label:
"Volunteer (with special skills)"
,
data:
{
action:
"session#verifyLanguages session#submitWithPrompt"
,
prompt:
"Why are you especially qualified? (Please keep it short, thanks)"
,
turbo_prefetch
:"false"
}
do
%>
🙌
<%
end
%>
<%
end
%>
</li><li
class=
"only-shiftcoordinator hidden"
>
<span
class=
"relative group inline-block"
>
<span
class=
"mx-0.5 p-0.5 bg-slate-400 bg-opacity-30 group-hover:bg-opacity-60 rounded-md border border-
t
ra
nsparent
group-hover:border-slate-400"
>
🔧
</span>
<span
class=
"mx-0.5 p-0.5 bg-slate-400 bg-opacity-30 group-hover:bg-opacity-60 rounded-md
shadow shadow-md
border border-
g
ra
y-900/20
group-hover:border-slate-400"
>
🔧
</span>
<ul
class=
"absolute inset-x-0 top-7 pt-2 invisible group-hover:visible opacity-0 group-hover:opacity-100 motion-safe:duration-300 z-30"
>
<li
class=
"py-0.5"
>
<%=
form_with
url:
update_notes_conference_session_path
(
session
.
conference
,
session
),
method: :patch
,
class:
"inline"
,
data:
{
turbo_frame:
dom_id
(
session
)
}
do
|
form
|
%>
<%=
link_to
update_notes_conference_session_path
(
session
.
conference
,
session
),
class:
"mx-0.5 p-0.5 bg-slate-400 bg-opacity-30 hover:bg-opacity-60 rounded-md border border-
t
ra
nsparent
hover:border-slate-400"
,
title:
"Edit Note"
,
aria_label:
"Edit Note"
,
data:
{
action:
"session#submitWithPrompt"
,
prompt:
"Please enter the note"
,
prefill:
session
.
notes
,
submitempty:
true
,
turbo_prefetch
:"false"
}
do
%>
📝
<%
end
-%>
<%=
link_to
update_notes_conference_session_path
(
session
.
conference
,
session
),
class:
"mx-0.5 p-0.5 bg-slate-400 bg-opacity-30 hover:bg-opacity-60 rounded-md
shadow shadow-md
border border-
g
ra
y-900/20
hover:border-slate-400"
,
title:
"Edit Note"
,
aria_label:
"Edit Note"
,
data:
{
action:
"session#submitWithPrompt"
,
prompt:
"Please enter the note"
,
prefill:
session
.
notes
,
submitempty:
true
,
turbo_prefetch
:"false"
}
do
%>
📝
<%
end
-%>
<%-
end
-%>
</li>
</ul>
...
...
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