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
a4972f44
Commit
a4972f44
authored
Jan 09, 2018
by
Alexander Zobnin
Committed by
Torkel Ödegaard
Jan 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix missing profile icon (#10469)
parent
3ecec8e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pkg/api/avatar/avatar.go
+3
-3
No files found.
pkg/api/avatar/avatar.go
View file @
a4972f44
...
...
@@ -157,11 +157,11 @@ func NewCacheServer() *CacheServer {
func
newNotFound
()
*
Avatar
{
avatar
:=
&
Avatar
{
notFound
:
true
}
// load
transparent
png into buffer
path
:=
filepath
.
Join
(
setting
.
StaticRootPath
,
"img"
,
"
transparent
.png"
)
// load
user_profile
png into buffer
path
:=
filepath
.
Join
(
setting
.
StaticRootPath
,
"img"
,
"
user_profile
.png"
)
if
data
,
err
:=
ioutil
.
ReadFile
(
path
);
err
!=
nil
{
log
.
Error
(
3
,
"Failed to read
transparent
.png, %v"
,
path
)
log
.
Error
(
3
,
"Failed to read
user_profile
.png, %v"
,
path
)
}
else
{
avatar
.
data
=
bytes
.
NewBuffer
(
data
)
}
...
...
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