Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fe436540
authored
Mar 26, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: absolute url for open graph image
parent
bd53c3e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
circle/dashboard/context_processors.py
+2
-0
circle/dashboard/static/dashboard/img/og.png
+0
-0
circle/dashboard/templates/open-graph.html
+1
-2
No files found.
circle/dashboard/context_processors.py
View file @
fe436540
...
...
@@ -16,6 +16,7 @@
# with CIRCLE. If not, see <http://www.gnu.org/licenses/>.
from
django.conf
import
settings
from
django.templatetags.static
import
static
def
notifications
(
request
):
...
...
@@ -30,4 +31,5 @@ def extract_settings(request):
return
{
'COMPANY_NAME'
:
getattr
(
settings
,
"COMPANY_NAME"
,
None
),
'ADMIN_ENABLED'
:
getattr
(
settings
,
"ADMIN_ENABLED"
,
False
),
'OG_IMAGE'
:
settings
.
DJANGO_URL
[:
-
1
]
+
static
(
"dashboard/img/og.png"
)
}
circle/dashboard/static/dashboard/img/og
-logo
.png
→
circle/dashboard/static/dashboard/img/og.png
View file @
fe436540
File moved
circle/dashboard/templates/open-graph.html
View file @
fe436540
{# use absolute url in production #}
<meta
property=
"og:image"
content=
"/static/dashboard/img/og-logo.png"
/>
<meta
property=
"og:image"
content=
"{{ OG_IMAGE }}"
/>
<meta
property=
"og:site_name"
content=
"CIRCLE Cloud - devenv"
/>
<meta
property=
"og:title"
content=
"CIRCLE Cloud - devenv"
/>
<meta
property=
"og:type"
content=
"website"
/>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment