Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
3744bc32
Commit
3744bc32
authored
Jan 21, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed server side rendering
parent
3c8c5319
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
grafana
+1
-1
pkg/api/render.go
+1
-2
No files found.
grafana
@
a0c8d3fa
Subproject commit
8ed921240133c8638ecd0b2973bae36cdb5f6ccb
Subproject commit
a0c8d3fa6fdf8eb3624af130fe12244f0e8d5e01
pkg/api/render.go
View file @
3744bc32
...
...
@@ -10,9 +10,8 @@ import (
)
func
RenderToPng
(
c
*
middleware
.
Context
)
{
accountId
:=
c
.
AccountId
queryReader
:=
util
.
NewUrlQueryReader
(
c
.
Req
.
URL
)
queryParams
:=
"?render=1&
accountId="
+
strconv
.
FormatInt
(
account
Id
,
10
)
+
"&"
+
c
.
Req
.
URL
.
RawQuery
queryParams
:=
"?render=1&
userId="
+
strconv
.
FormatInt
(
c
.
User
Id
,
10
)
+
"&"
+
c
.
Req
.
URL
.
RawQuery
renderOpts
:=
&
renderer
.
RenderOpts
{
Url
:
c
.
Params
(
"*"
)
+
queryParams
,
...
...
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