Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RDMS
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
researchdata
RDMS
Commits
ab4baac2
Commit
ab4baac2
authored
1 year ago
by
Kapil Patel
Browse files
Options
Downloads
Patches
Plain Diff
fix crc dataset show page for unlogged-in user and display correct depositor.
parent
14977dec
Branches
bug/220-fixes-for-unlogged-in-user
No related tags found
1 merge request
!200
Fixed crc_dataset show page for unlogged-in user and display correct depositor.
Pipeline
#8940
failed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hyrax/app/views/hyrax/crc_datasets/show.html.erb
+1
-1
1 addition, 1 deletion
hyrax/app/views/hyrax/crc_datasets/show.html.erb
hyrax/app/views/hyrax/homepage/_recent_document.html.erb
+18
-0
18 additions, 0 deletions
hyrax/app/views/hyrax/homepage/_recent_document.html.erb
with
19 additions
and
1 deletion
hyrax/app/views/hyrax/crc_datasets/show.html.erb
+
1
−
1
View file @
ab4baac2
...
...
@@ -4,7 +4,7 @@
<div
class=
"row work-type"
>
<div
class=
"card"
>
<div
class=
"card-body"
>
<%
if
current_user
.
workflow_action_permission?
(
presenter
)
%>
<%
if
current_user
&&
current_user
.
workflow_action_permission?
(
presenter
)
%>
<%=
render
'workflow_actions_widget'
,
presenter:
presenter
%>
<%
end
%>
<%=
render
'title'
,
presenter:
presenter
%>
...
...
This diff is collapsed.
Click to expand it.
hyrax/app/views/hyrax/homepage/_recent_document.html.erb
0 → 100644
+
18
−
0
View file @
ab4baac2
<li
class=
"recent-item"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<span
class=
"sr-only"
>
<%=
t
(
'hyrax.homepage.recently_uploaded.document.title_label'
)
%>
</span>
<h3>
<%=
link_to
[
main_app
,
recent_document
]
do
%>
<%=
render_thumbnail_tag
(
recent_document
,
{
width:
90
,
alt:
"
#{
recent_document
}
#{
t
(
'hyrax.homepage.admin_sets.thumbnail'
)
}
"
},
{
suppress_link:
true
})
%><%=
recent_document
%>
<%
end
%>
</h3>
<p
class=
"recent-field"
>
<span
class=
"recent-label"
>
<%=
t
(
'hyrax.homepage.recently_uploaded.document.depositor_label'
)
%>
:
</span>
<%=
link_to_profile
recent_document
.
proxy_depositor
&
.
first
||
recent_document
.
depositor
(
t
(
'hyrax.homepage.recently_uploaded.document.depositor_missing'
))
%>
</p>
<p
class=
"recent-field"
>
<span
class=
"recent-label"
>
<%=
t
(
'hyrax.homepage.recently_uploaded.document.keyword_label'
)
%>
:
</span>
<%=
link_to_facet_list
(
recent_document
.
keyword
,
'keyword'
,
t
(
'hyrax.homepage.recently_uploaded.document.keyword_missing'
)).
html_safe
%>
</p>
</div>
</div>
</li>
\ No newline at end of file
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