Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
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
Container Registry
Model registry
Operate
Environments
Terraform modules
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
osuny
Admin
Commits
6c888c5d
Unverified
Commit
6c888c5d
authored
2 years ago
by
Alexis BENOIT
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #914 from noesya/style/library
style/library
parents
187a73c9
4537a5cb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/assets/stylesheets/extranet/pages/_library.sass
+20
-0
20 additions, 0 deletions
app/assets/stylesheets/extranet/pages/_library.sass
app/views/extranet/library/documents/index.html.erb
+9
-5
9 additions, 5 deletions
app/views/extranet/library/documents/index.html.erb
with
29 additions
and
5 deletions
app/assets/stylesheets/extranet/pages/_library.sass
0 → 100644
+
20
−
0
View file @
6c888c5d
.documents-list
article
>
div
align-items
:
center
background
:
$header-color
display
:
flex
padding
:
45px
20px
span
background
:
transparentize
(
$primary
,
.7
)
border-radius
:
5px
color
:
white
padding
:
2px
18px
i
color
:
transparentize
(
$primary
,
.7
)
margin-right
:
27px
p
margin-bottom
:
40px
margin-top
:
15px
a
background
:
$primary
border-color
:
$primary
This diff is collapsed.
Click to expand it.
app/views/extranet/library/documents/index.html.erb
+
9
−
5
View file @
6c888c5d
<%
content_for
:title
,
Communication
::
Extranet
::
Document
.
model_name
.
human
(
count:
2
)
%>
<div
class=
"row mt-n5"
>
<div
class=
"row mt-n5
documents-list
"
>
<%
@documents
.
each
do
|
document
|
%>
<div
class=
"col-lg-4"
>
<div
class=
"position-relative mt-5"
>
<p
class=
"mt-2"
>
<article
class=
"position-relative mt-5"
>
<div>
<i
class=
"bi bi-file-earmark-text display-1"
></i>
<span>
PDF - 120ko
</span>
</div>
<p>
<b>
<%=
document
%>
</b><br>
<span
class=
"text-muted"
>
<%=
l
document
.
published_at
.
to_date
%>
<span>
</p>
<%=
link_to
t
(
'extranet.library.download'
),
document
.
file
.
url
,
class:
'btn btn-primary'
,
class:
'btn btn-primary
stretched-link
'
,
target: :_blank
if
document
.
file
.
attached?
%>
</
div
>
</
article
>
</div>
<%
end
%>
</div>
...
...
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