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
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
hemp
Maják
Commits
534ccde5
Commit
534ccde5
authored
4 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
tuning: SEO help text with links to tools
parent
e7a97d83
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tuning/help.py
+9
-1
9 additions, 1 deletion
tuning/help.py
with
9 additions
and
1 deletion
tuning/help.py
+
9
−
1
View file @
534ccde5
INFO
=
"
Informace zde uvedené slouží zejména pro sdílení stránky (na sociálních sítích...) a vyhledávače.
"
TOOLS
=
(
"
Jak bude sdílení vypadat můžete zkontrolovat na
"
'
<a href=
"
https://developers.facebook.com/tools/debug/
"
>https://developers.facebook.com/tools/debug/</a>
'
'
a <a href=
"
https://cards-dev.twitter.com/validator/
"
target=
"
_blank
"
>https://cards-dev.twitter.com/validator/</a>
'
)
IMPORTANT_TITLE
=
(
"
<strong>Název</strong> stránky (tab obsah) slouží k rozlišení stránek v
"
"
Majáku. V prohlížeči se zobrazí <strong>Titulek stránky</strong>.
"
)
NO_SEO_TITLE
=
(
"
Pokud není zadán <strong>Titulek stránky</strong>, použije se
"
"
<strong>Název</strong> (tab obsah).
"
)
NO_SEARCH_IMAGE
=
(
"
Pokud není zadán <strong>Search image</strong>, použije se stejný jako na
"
"
úvodní stránce.
"
...
...
@@ -15,4 +23,4 @@ NO_SEARCH_IMAGE = (
def
build
(
*
items
):
list_items
=
"
<br>
"
.
join
(
f
"
•
{
item
}
"
for
item
in
items
)
return
f
"""
<div class=
"
help-block help-info
"
>
{
INFO
}
<br><br>
{
list_items
}
</div>
"""
return
f
"""
<div class=
"
help-block help-info
"
>
{
INFO
}
<br><br>
{
list_items
}
<
br><br>
{
TOOLS
}
<
/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