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
4c90adfb
Commit
4c90adfb
authored
2 years ago
by
Arnaud Levy
Browse files
Options
Downloads
Patches
Plain Diff
posts
parent
1959ff5c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/views/extranet/posts/posts/_list.html.erb
+9
-5
9 additions, 5 deletions
app/views/extranet/posts/posts/_list.html.erb
config/locales/extranet/en.yml
+2
-1
2 additions, 1 deletion
config/locales/extranet/en.yml
config/locales/extranet/fr.yml
+2
-1
2 additions, 1 deletion
config/locales/extranet/fr.yml
with
13 additions
and
7 deletions
app/views/extranet/posts/posts/_list.html.erb
+
9
−
5
View file @
4c90adfb
<div
class=
"row"
>
<div
class=
"row
mt-n5
"
>
<%
posts
.
each
do
|
post
|
%>
<div
class=
"col-lg-4"
>
<div
class=
"position-relative"
>
<%
if
post
.
featured_image
.
attached?
&&
post
.
featured_image
.
analyzed?
&&
post
.
featured_image
.
representable?
%>
<%=
kamifusen
_tag
post
.
featured_image
.
variant
(
resize_to_fill:
[
800
,
500
]),
class:
'img-fluid'
%>
<div
class=
"position-relative
mt-5
"
>
<%
if
post
.
featured_image
.
attached?
&&
post
.
featured_image
.
representable?
%>
<%=
image
_tag
post
.
featured_image
.
variant
(
resize_to_fill:
[
800
,
500
]),
class:
'img-fluid'
%>
<%
end
%>
<%=
link_to
post
,
posts_communication_extranet_post_path
(
post
.
slug
),
class:
'stretched-link'
%>
<p
class=
"mt-2"
>
<b>
<%=
post
%>
</b><br>
<span
class=
"text-muted"
>
<%=
l
post
.
published_at
%>
<span>
</p>
<%=
link_to
t
(
'extranet.posts.read_post'
),
posts_communication_extranet_post_path
(
post
.
slug
),
class:
' btn btn-outline-primary stretched-link'
%>
</div>
</div>
<%
end
%>
...
...
This diff is collapsed.
Click to expand it.
config/locales/extranet/en.yml
+
2
−
1
View file @
4c90adfb
...
...
@@ -35,4 +35,5 @@ en:
title
:
My personal data
updated
:
Your personal data has been updated!
posts
:
home
:
Recent posts
\ No newline at end of file
home
:
Recent posts
read_post
:
Read post
\ No newline at end of file
This diff is collapsed.
Click to expand it.
config/locales/extranet/fr.yml
+
2
−
1
View file @
4c90adfb
...
...
@@ -35,4 +35,5 @@ fr:
title
:
Mes données personnelles
updated
:
Mise à jour des donnes personnelles effectuée !
posts
:
home
:
Actualités récentes
\ No newline at end of file
home
:
Actualités récentes
read_post
:
Lire l'article
\ 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