Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Commits
991db148
Commit
991db148
authored
7 years ago
by
Alf Eaton
Browse files
Options
Downloads
Patches
Plain Diff
Refactor actions components
parent
7976e51f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/components/ProjectActions.css
+0
-14
0 additions, 14 deletions
app/components/ProjectActions.css
app/components/ProjectActions.js
+7
-25
7 additions, 25 deletions
app/components/ProjectActions.js
app/components/VersionActions.js
+22
-14
22 additions, 14 deletions
app/components/VersionActions.js
with
29 additions
and
53 deletions
app/components/ProjectActions.css
deleted
100644 → 0
+
0
−
14
View file @
7976e51f
.project-actions
{
margin
:
20px
auto
;
width
:
auto
;
text-align
:
center
;
font-size
:
120%
;
white-space
:
nowrap
;
padding-bottom
:
20px
;
}
.project-action
{
color
:
#4990E2
;
text-decoration-color
:
#aaa
;
text-decoration-skip
:
ink
}
This diff is collapsed.
Click to expand it.
app/components/ProjectActions.js
+
7
−
25
View file @
991db148
...
@@ -2,35 +2,17 @@ import React from 'react'
...
@@ -2,35 +2,17 @@ import React from 'react'
import
PropTypes
from
'
prop-types
'
import
PropTypes
from
'
prop-types
'
import
{
Link
}
from
'
react-router
'
import
{
Link
}
from
'
react-router
'
import
'
./ProjectActions.css
'
import
'
./Actions.css
'
import
{
Button
}
from
'
react-bootstrap
'
const
ProjectActions
=
({
project
,
approveSubmission
})
=>
(
const
ProjectActions
=
({
project
,
approveSubmission
})
=>
(
<
div
className
=
"
project-actions content-metadata
"
>
<
div
className
=
"
actions content-metadata
"
>
{
project
.
status
===
'
submitted
'
?
(
<
div
className
=
"
action
"
>
<
div
>
<
Link
to
=
{
`/projects/
${
project
.
id
}
/editor`
}
className
=
"
project-action
"
>
assign
an
editor
<
/Link
>
<
div
>
<
Button
onClick
=
{
approveSubmission
}
>
Approve
submission
<
/Button
>
<
/div
>
<
div
>
<
Link
to
=
{
`/projects/
${
project
.
id
}
/editor`
}
className
=
"
project-action
"
>
assign
an
editor
<
/Link
>
<
/div
>
<
div
>
<
Link
to
=
{
`/projects/
${
project
.
id
}
/reviewers`
}
className
=
"
project-action
"
>
invite
reviewers
<
/Link
>
<
/div
>
<
/div
>
<
/div
>
)
:
(
<
div
>
<
div
className
=
"
action
"
>
<
div
>
<
Link
to
=
{
`/projects/
${
project
.
id
}
/reviewers`
}
className
=
"
project-action
"
>
invite
reviewers
<
/Link
>
<
Link
to
=
{
`/editor/
${
project
.
id
}
`
}
target
=
"
editor
"
className
=
"
project-action
"
>
edit
your
manuscript
<
/Link
>
<
/div
>
<
div
>
<
Link
to
=
{
`/projects/
${
project
.
id
}
/declarations`
}
className
=
"
project-action
"
>
submit
for
publication
<
/Link
>
<
/div
>
<
/div
>
<
/div
>
)}
<
/div
>
<
/div
>
)
)
...
...
This diff is collapsed.
Click to expand it.
app/components/VersionActions.js
+
22
−
14
View file @
991db148
...
@@ -2,28 +2,36 @@ import React from 'react'
...
@@ -2,28 +2,36 @@ import React from 'react'
import
PropTypes
from
'
prop-types
'
import
PropTypes
from
'
prop-types
'
import
{
Link
}
from
'
react-router
'
import
{
Link
}
from
'
react-router
'
import
'
./
Version
Actions.css
'
import
'
./Actions.css
'
const
VersionActions
=
({
project
,
version
})
=>
(
const
VersionActions
=
({
project
,
version
})
=>
(
<
div
className
=
"
version-actions
"
>
<
div
className
=
"
actions
"
>
<
div
>
<
div
className
=
"
action
"
>
<
Link
to
=
{
`/editor/
${
project
.
id
}
/
${
version
.
id
}
`
}
target
=
"
editor
"
<
Link
to
=
{
`/editor/
${
project
.
id
}
/
${
version
.
id
}
`
}
target
=
"
editor
"
>
{
version
.
snapshot
?
'
view your manuscript
'
:
'
edit your manuscript
'
}
<
/Link
>
className
=
"
version-action
"
>
{
version
.
submitted
?
'
view your manuscript
'
:
'
edit your manuscript
'
}
<
/Link
>
<
/div
>
<
/div
>
<
div
>
<
div
className
=
"
action
"
>
<
Link
to
=
{
`/projects/
${
project
.
id
}
/declarations`
}
<
Link
to
=
{
`/projects/
${
project
.
id
}
/declarations`
}
>
{
version
.
snapshot
?
'
view declarations
'
:
'
edit declarations
'
}
<
/Link
>
className
=
"
version-action
"
>
{
version
.
submitted
?
'
view declarations
'
:
'
submit for peer review
'
}
<
/Link
>
<
/div
>
<
/div
>
<
div
style
=
{{
marginTop
:
20
}}
>
<
div
className
=
"
action
"
>
<
Link
to
=
{
`/projects/
${
project
.
id
}
/review`
}
<
Link
to
=
{
`/projects/
${
project
.
id
}
/check`
}
>
check
submission
<
/Link
>
className
=
"
version-action
"
>
submit
your
review
<
/Link
>
<
/div
>
<
/div
>
<
div
>
<
div
className
=
"
action
"
>
<
Link
to
=
{
`/projects/
${
project
.
id
}
/decision`
}
<
Link
to
=
{
`/projects/
${
project
.
id
}
/submit`
}
>
submit
for
peer
review
<
/Link
>
className
=
"
version-action
"
>
submit
your
decision
<
/Link
>
<
/div
>
<
div
className
=
"
action
"
>
<
Link
to
=
{
`/projects/
${
project
.
id
}
/submit`
}
>
publish
preprint
<
/Link
>
<
/div
>
<
div
className
=
"
action
"
>
<
Link
to
=
{
`/projects/
${
project
.
id
}
/review`
}
>
submit
your
review
<
/Link
>
<
/div
>
<
div
className
=
"
action
"
>
<
Link
to
=
{
`/projects/
${
project
.
id
}
/decision`
}
>
submit
your
decision
<
/Link
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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