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
6cdf6220
Commit
6cdf6220
authored
3 years ago
by
pabois
Browse files
Options
Downloads
Patches
Plain Diff
wip #108
parent
bb33f527
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/models/communication/website.rb
+2
-2
2 additions, 2 deletions
app/models/communication/website.rb
app/models/university/person.rb
+8
-1
8 additions, 1 deletion
app/models/university/person.rb
with
10 additions
and
3 deletions
app/models/communication/website.rb
+
2
−
2
View file @
6cdf6220
...
...
@@ -27,10 +27,10 @@
# fk_rails_... (university_id => universities.id)
#
class
Communication::Website
<
ApplicationRecord
include
With
GitRepository
include
With
Abouts
include
WithGit
include
WithGitRepository
include
WithHome
include
WithAbouts
include
WithImport
belongs_to
:university
...
...
This diff is collapsed.
Click to expand it.
app/models/university/person.rb
+
8
−
1
View file @
6cdf6220
...
...
@@ -100,7 +100,14 @@ class University::Person < ApplicationRecord
end
def
identifiers
(
website:
nil
)
[
:static
,
:author
,
:researcher
,
:teacher
,
:administrator
]
website_id
=
website
&
.
id
list
=
[]
list
<<
:author
if
communication_websites
.
pluck
(
:id
).
include?
(
website_id
)
list
<<
:researcher
if
research_websites
.
pluck
(
:id
).
include?
(
website_id
)
list
<<
:teacher
if
education_websites
.
pluck
(
:id
).
include?
(
website_id
)
# TODO :administrator
list
<<
:static
unless
list
.
empty?
list
end
def
git_path_static
...
...
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