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
4a6b5274
Commit
4a6b5274
authored
Aug 17, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(invite): fixes for org invite enhancement story, #2353
parent
f7ea420a
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
29 deletions
+27
-29
emails/assets/css/ink.css
+11
-15
emails/templates/invited_to_org.html
+1
-1
pkg/api/org_invite.go
+2
-0
public/emails/invited_to_org.html
+4
-4
public/emails/new_user_invite.html
+3
-3
public/emails/reset_password.html
+3
-3
public/emails/welcome_on_signup.html
+3
-3
No files found.
emails/assets/css/ink.css
View file @
4a6b5274
...
...
@@ -332,9 +332,9 @@ h1, h2, h3, h4, h5, h6 {
h1
{
font-size
:
40px
;}
h2
{
font-size
:
36px
;}
h3
{
font-size
:
26
px
;}
h4
{
font-size
:
2
4
px
;}
h5
{
font-size
:
2
2
px
;}
h3
{
font-size
:
32
px
;}
h4
{
font-size
:
2
8
px
;}
h5
{
font-size
:
2
4
px
;}
h6
{
font-size
:
20px
;}
body
,
table
.body
,
p
,
td
{
font-size
:
14px
;
line-height
:
19px
;}
...
...
@@ -351,25 +351,21 @@ small {
font-size
:
10px
;
}
.emphasis
{
font-weight
:
600
;
}
a
{
color
:
#
E67612
;
color
:
#
2ba6cb
;
text-decoration
:
none
;
}
a
:hover
{
color
:
#
ff8f2b
!important
;
color
:
#
2795b6
!important
;
}
a
:active
{
color
:
#
F2821E
!important
;
color
:
#
2795b6
!important
;
}
a
:visited
{
color
:
#
E67612
!important
;
color
:
#
2ba6cb
!important
;
}
h1
a
,
...
...
@@ -434,8 +430,8 @@ table.large-button td {
display
:
block
;
width
:
auto
!important
;
text-align
:
center
;
background
:
#
ff8f2
b
;
border
:
1px
solid
#
ff8f2b
;
background
:
#
2ba6c
b
;
border
:
1px
solid
#
2284a1
;
color
:
#ffffff
;
padding
:
8px
0
;
}
...
...
@@ -488,7 +484,7 @@ table.large-button td a {
table
.button
:hover
td
,
table
.button
:visited
td
,
table
.button
:active
td
{
background
:
#
ff8f2b
!important
;
background
:
#
2795b6
!important
;
}
table
.button
:hover
td
a
,
...
...
@@ -502,7 +498,7 @@ table.tiny-button:hover td,
table
.small-button
:hover
td
,
table
.medium-button
:hover
td
,
table
.large-button
:hover
td
{
background
:
#
F2821E
!important
;
background
:
#
2795b6
!important
;
}
table
.button
:hover
td
a
,
...
...
emails/templates/invited_to_org.html
View file @
4a6b5274
...
...
@@ -34,7 +34,7 @@
<td
class=
"center"
>
<table
class=
"better-button"
align=
"center"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<td
align=
"center"
class=
"better-button"
bgcolor=
"#ff8f2b"
><a
href=
"[[.AppU
RL
]]"
target=
"_blank"
>
Log in now
</a></td>
<td
align=
"center"
class=
"better-button"
bgcolor=
"#ff8f2b"
><a
href=
"[[.AppU
rl
]]"
target=
"_blank"
>
Log in now
</a></td>
</tr>
</table>
...
...
pkg/api/org_invite.go
View file @
4a6b5274
...
...
@@ -181,8 +181,10 @@ func CompleteInvite(c *middleware.Context, completeInvite dtos.CompleteInviteFor
// add to org
addOrgUserCmd
:=
m
.
AddOrgUserCommand
{
OrgId
:
invite
.
OrgId
,
UserId
:
user
.
Id
,
Role
:
invite
.
Role
}
if
err
:=
bus
.
Dispatch
(
&
addOrgUserCmd
);
err
!=
nil
{
if
err
!=
m
.
ErrOrgUserAlreadyAdded
{
return
ApiError
(
500
,
"Error while trying to create org user"
,
err
)
}
}
// set org to active
if
err
:=
bus
.
Dispatch
(
&
m
.
SetUsingOrgCommand
{
OrgId
:
invite
.
OrgId
,
UserId
:
user
.
Id
});
err
!=
nil
{
...
...
public/emails/invited_to_org.html
View file @
4a6b5274
...
...
@@ -19,13 +19,13 @@ body {
font-size
:
14px
;
line-height
:
19px
;
}
a
:hover
{
color
:
#
ff8f2b
!important
;
color
:
#
2795b6
!important
;
}
a
:active
{
color
:
#
F2821E
!important
;
color
:
#
2795b6
!important
;
}
a
:visited
{
color
:
#
E67612
!important
;
color
:
#
2ba6cb
!important
;
}
body
{
font-family
:
'Open Sans'
,
'Helvetica Neue'
,
'Helvetica'
,
Helvetica
,
Arial
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-webkit-text-size-adjust
:
none
;
...
...
@@ -149,7 +149,7 @@ color: #FFFFFF !important;
<td
class=
"center"
style=
"-moz-hyphens: auto; -webkit-font-smoothing: antialiased; -webkit-hyphens: auto; -webkit-text-size-adjust: none; border-collapse: collapse !important; color: #222222; font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; hyphens: auto; line-height: 19px; margin: 0; padding: 0px 0px 10px; text-align: center; vertical-align: top; word-break: break-word"
align=
"center"
valign=
"top"
>
<table
class=
"better-button"
align=
"center"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
style=
"border-collapse: collapse; border-spacing: 0; margin-bottom: 20px; margin-top: 10px; padding: 0; text-align: left; vertical-align: top"
>
<tr
style=
"padding: 0; text-align: left; vertical-align: top"
align=
"left"
>
<td
align=
"center"
class=
"better-button"
bgcolor=
"#ff8f2b"
style=
"-moz-border-radius: 2px; -moz-hyphens: auto; -webkit-border-radius: 2px; -webkit-font-smoothing: antialiased; -webkit-hyphens: auto; -webkit-text-size-adjust: none; border-collapse: collapse !important; border-radius: 2px; color: #222222; font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; hyphens: auto; line-height: 19px; margin: 0; padding: 0px; text-align: left; vertical-align: top; word-break: break-word"
valign=
"top"
><a
href=
"{{.AppU
RL
}}"
target=
"_blank"
style=
"-moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; border: 1px solid #ff8f2b; color: #FFF; display: inline-block; padding: 12px 25px; text-decoration: none"
>
Log in now
</a></td>
<td
align=
"center"
class=
"better-button"
bgcolor=
"#ff8f2b"
style=
"-moz-border-radius: 2px; -moz-hyphens: auto; -webkit-border-radius: 2px; -webkit-font-smoothing: antialiased; -webkit-hyphens: auto; -webkit-text-size-adjust: none; border-collapse: collapse !important; border-radius: 2px; color: #222222; font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 14px; font-weight: normal; hyphens: auto; line-height: 19px; margin: 0; padding: 0px; text-align: left; vertical-align: top; word-break: break-word"
valign=
"top"
><a
href=
"{{.AppU
rl
}}"
target=
"_blank"
style=
"-moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; border: 1px solid #ff8f2b; color: #FFF; display: inline-block; padding: 12px 25px; text-decoration: none"
>
Log in now
</a></td>
</tr>
</table>
...
...
public/emails/new_user_invite.html
View file @
4a6b5274
...
...
@@ -19,13 +19,13 @@ body {
font-size
:
14px
;
line-height
:
19px
;
}
a
:hover
{
color
:
#
ff8f2b
!important
;
color
:
#
2795b6
!important
;
}
a
:active
{
color
:
#
F2821E
!important
;
color
:
#
2795b6
!important
;
}
a
:visited
{
color
:
#
E67612
!important
;
color
:
#
2ba6cb
!important
;
}
body
{
font-family
:
'Open Sans'
,
'Helvetica Neue'
,
'Helvetica'
,
Helvetica
,
Arial
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-webkit-text-size-adjust
:
none
;
...
...
public/emails/reset_password.html
View file @
4a6b5274
...
...
@@ -19,13 +19,13 @@ body {
font-size
:
14px
;
line-height
:
19px
;
}
a
:hover
{
color
:
#
ff8f2b
!important
;
color
:
#
2795b6
!important
;
}
a
:active
{
color
:
#
F2821E
!important
;
color
:
#
2795b6
!important
;
}
a
:visited
{
color
:
#
E67612
!important
;
color
:
#
2ba6cb
!important
;
}
body
{
font-family
:
'Open Sans'
,
'Helvetica Neue'
,
'Helvetica'
,
Helvetica
,
Arial
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-webkit-text-size-adjust
:
none
;
...
...
public/emails/welcome_on_signup.html
View file @
4a6b5274
...
...
@@ -19,13 +19,13 @@ body {
font-size
:
14px
;
line-height
:
19px
;
}
a
:hover
{
color
:
#
ff8f2b
!important
;
color
:
#
2795b6
!important
;
}
a
:active
{
color
:
#
F2821E
!important
;
color
:
#
2795b6
!important
;
}
a
:visited
{
color
:
#
E67612
!important
;
color
:
#
2ba6cb
!important
;
}
body
{
font-family
:
'Open Sans'
,
'Helvetica Neue'
,
'Helvetica'
,
Helvetica
,
Arial
,
sans-serif
;
-webkit-font-smoothing
:
antialiased
;
-webkit-text-size-adjust
:
none
;
...
...
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