Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
scriptorium
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
degrowth
scriptorium
Commits
1bc95023
Commit
1bc95023
authored
Apr 12, 2018
by
Gualter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add condition to show only to users with accepted sessions
parent
408f63c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
app/models/ability.rb
app/models/ability.rb
+4
-0
app/views/cfp/shared/_cfp_dashboard.html.haml
app/views/cfp/shared/_cfp_dashboard.html.haml
+8
-7
No files found.
app/models/ability.rb
View file @
1bc95023
...
...
@@ -135,6 +135,10 @@ class Ability
event
.
event_ratings
.
peer_reviews
.
where
(
person:
@user
.
person
).
any?
end
can
:buy_tickets
,
Conference
do
|
conference
|
@user
.
person
.
events
.
accepted_but_not_paid
.
where
(
conference_id:
conference
.
id
).
any?
end
# Submitters can either edit themselves
can
:crud
,
Person
,
id:
@user
.
person
.
id
...
...
app/views/cfp/shared/_cfp_dashboard.html.haml
View file @
1bc95023
...
...
@@ -3,13 +3,14 @@
%p
=
t
(
'cfp.thanks_for_interest'
,
:title
=>
conference
.
title
)
-
if
cfp_hard_deadline_over?
%p
=
t
(
'cfp.hard_deadline_over'
)
%pretix-widget
{
:event
=>
"https://tickets.degrowth.net/malmo2018/"
,
:voucher
=>
"SEBZ8X38BCDSTSYT"
}
%noscript
.pretix-widget
.pretix-widget-info-message
JavaScript is disabled in your browser. To access our ticket shop without JavaScript, please
=
succeed
"."
do
%a
{
:href
=>
"https://tickets.degrowth.net/malmo2018/"
,
:rel
=>
"noopener"
,
:target
=>
"_blank"
}
click here
-
if
can?
:buy_tickets
,
conference
%pretix-widget
{
:event
=>
"https://tickets.degrowth.net/malmo2018/"
,
:voucher
=>
"SEBZ8X38BCDSTSYT"
}
%noscript
.pretix-widget
.pretix-widget-info-message
JavaScript is disabled in your browser. To access our ticket shop without JavaScript, please
=
succeed
"."
do
%a
{
:href
=>
"https://tickets.degrowth.net/malmo2018/"
,
:rel
=>
"noopener"
,
:target
=>
"_blank"
}
click here
-
elsif
not
conference
.
in_the_past
-
if
person
.
events_in
(
conference
).
size
>
0
-# if person.availabilities_in(conference).count == 0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment