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
d4d896ad
Commit
d4d896ad
authored
Aug 01, 2018
by
Patrick O'Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced style with class for links
parent
4b8ec4e3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
public/app/plugins/panel/table/renderer.ts
+9
-4
public/app/plugins/panel/table/specs/renderer.jest.ts
+1
-1
public/sass/components/_panel_table.scss
+4
-0
No files found.
public/app/plugins/panel/table/renderer.ts
View file @
d4d896ad
...
...
@@ -214,15 +214,15 @@ export class TableRenderer {
var
style
=
''
;
var
cellClasses
=
[];
var
cellClass
=
''
;
var
link
Style
=
''
;
var
link
Class
=
''
;
if
(
this
.
colorState
.
row
)
{
link
Style
=
' style="color: white"
'
;
link
Class
=
'table-panel-link
'
;
}
if
(
this
.
colorState
.
cell
)
{
style
=
' style="background-color:'
+
this
.
colorState
.
cell
+
';color: white"'
;
link
Style
=
' style="color: white;"
'
;
link
Class
=
'table-panel-link
'
;
this
.
colorState
.
cell
=
null
;
}
else
if
(
this
.
colorState
.
value
)
{
style
=
' style="color:'
+
this
.
colorState
.
value
+
'"'
;
...
...
@@ -258,7 +258,12 @@ export class TableRenderer {
cellClasses
.
push
(
'table-panel-cell-link'
);
columnHtml
+=
`
<a href="
${
cellLink
}
" target="
${
cellTarget
}
" data-link-tooltip data-original-title="
${
cellLinkTooltip
}
" data-placement="right"
${
linkStyle
}
>
<a href="
${
cellLink
}
"
target="
${
cellTarget
}
"
data-link-tooltip
data-original-title="
${
cellLinkTooltip
}
"
data-placement="right"
class="
${
linkClass
}
">
${
value
}
</a>
`
;
...
...
public/app/plugins/panel/table/specs/renderer.jest.ts
View file @
d4d896ad
...
...
@@ -268,7 +268,7 @@ describe('when rendering table', () => {
var
expectedHtml
=
`
<td class="table-panel-cell-link">
<a href="/dashboard?param=host1¶m_1=1230¶m_2=40"
target="_blank" data-link-tooltip data-original-title="host1 1230 my.host.com" data-placement="right">
target="_blank" data-link-tooltip data-original-title="host1 1230 my.host.com" data-placement="right"
class=""
>
host1
</a>
</td>
...
...
public/sass/components/_panel_table.scss
View file @
d4d896ad
...
...
@@ -133,3 +133,7 @@
height
:
0px
;
line-height
:
0px
;
}
.table-panel-link
{
color
:
white
;
}
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