Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
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
Container registry
Model registry
Operate
Environments
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
TO
Maják
Commits
7fff1d02
Verified
Commit
7fff1d02
authored
1 year ago
by
jindra12
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix main links
#210
parent
9254684c
Branches
Branches containing commit
No related tags found
2 merge requests
!816
Release
,
!801
Prepare basic shared tags
Pipeline
#13877
passed
1 year ago
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/models.py
+4
-0
4 additions, 0 deletions
main/models.py
shared/models.py
+3
-3
3 additions, 3 deletions
shared/models.py
with
7 additions
and
3 deletions
main/models.py
+
4
−
0
View file @
7fff1d02
...
...
@@ -358,6 +358,10 @@ class MainHomePage(
except
IndexError
:
return
None
@route
(
r
"
^sdilene/$
"
,
name
=
"
shared
"
)
def
shared
(
self
,
request
):
return
self
.
setup_article_page_context
(
request
)
class
MainArticlesPage
(
RoutablePageMixin
,
...
...
This diff is collapsed.
Click to expand it.
shared/models.py
+
3
−
3
View file @
7fff1d02
...
...
@@ -114,18 +114,18 @@ class ArticleMixin(models.Model):
"""
Returns
"
rel
"
property for a link to this article
"""
return
'
rel=
"
noindex
"'
if
self
.
no_index
else
""
return
'
rel=
"
noindex
"'
if
self
.
get_
no_index
else
""
@property
def
get_url
(
self
):
if
self
.
shared_from
is
not
None
:
return
f
"
{
self
.
shared_from
.
url
}
/
sdilene?sdilene=
{
quote
(
self
.
slug
)
}
"
return
f
"
{
self
.
shared_from
.
url
}
sdilene?sdilene=
{
quote
(
self
.
slug
)
}
"
return
self
.
url
@property
def
get_full_url
(
self
):
if
self
.
shared_from
is
not
None
:
return
f
"
{
self
.
shared_from
.
url
}
/
sdilene?sdilene=
{
quote
(
self
.
slug
)
}
"
return
f
"
{
self
.
shared_from
.
full_
url
}
sdilene?sdilene=
{
quote
(
self
.
slug
)
}
"
return
self
.
full_url
@property
...
...
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