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
a202eeb8
Commit
a202eeb8
authored
2 years ago
by
pabois
Browse files
Options
Downloads
Patches
Plain Diff
adjust account extranet
parent
44329e48
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/controllers/extranet/account_controller.rb
+2
-2
2 additions, 2 deletions
app/controllers/extranet/account_controller.rb
app/views/extranet/account/show.html.erb
+8
-6
8 additions, 6 deletions
app/views/extranet/account/show.html.erb
with
10 additions
and
8 deletions
app/controllers/extranet/account_controller.rb
+
2
−
2
View file @
a202eeb8
class
Extranet::AccountController
<
Extranet
::
ApplicationController
def
show
# Superadmins
don't
have
a
person
#
Admin or
Superadmins
can
have
NO
person
@person
=
current_user
.
person
breadcrumb
end
...
...
@@ -39,4 +39,4 @@ class Extranet::AccountController < Extranet::ApplicationController
super
add_breadcrumb
t
(
'extranet.account.my'
),
account_path
end
end
\ No newline at end of file
end
This diff is collapsed.
Click to expand it.
app/views/extranet/account/show.html.erb
+
8
−
6
View file @
a202eeb8
...
...
@@ -2,16 +2,18 @@
<div
class=
"row"
>
<div
class=
"col-md-9"
>
<%
unless
@person
.
biography
.
blank?
%>
<%
unless
@person
&
.
biography
.
blank?
%>
<div
class=
"biography mb-5"
>
<%=
sanitize
@person
.
biography
%>
</div>
<%
end
%>
<p>
<%=
t
(
'extranet.experiences.title'
)
%>
</p>
<%=
link_to
University
::
Person
::
Experience
.
human_attribute_name
(
'new'
),
new_experience_path
,
class:
'btn btn-sm btn-primary mt-md-n5 float-md-end'
%>
<%=
render
'extranet/experiences/list'
,
person:
@person
,
edit:
true
%>
<%
if
@person
%>
<p>
<%=
t
(
'extranet.experiences.title'
)
%>
</p>
<%=
link_to
University
::
Person
::
Experience
.
human_attribute_name
(
'new'
),
new_experience_path
,
class:
'btn btn-sm btn-primary mt-md-n5 float-md-end'
%>
<%=
render
'extranet/experiences/list'
,
person:
@person
,
edit:
true
%>
<%
end
%>
</div>
<div
class=
"col-md-3"
>
<%=
kamifusen_tag
@person
.
best_picture
,
width:
400
,
class:
'img-fluid person__portrait'
if
@person
&
.
best_picture
&
.
attached?
%>
...
...
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