Skip to content

Commit

Permalink
Merge pull request #242 from tidusjar/dev
Browse files Browse the repository at this point in the history
1.7.2
  • Loading branch information
Jamie committed May 25, 2016
2 parents 215b189 + c70ed93 commit e419727
Show file tree
Hide file tree
Showing 13 changed files with 69 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,8 @@ public async Task NotifyAsync(NotificationModel model, Settings settings)
case NotificationType.Test:
await EmailTest(model, emailSettings);
break;

default:
throw new ArgumentOutOfRangeException();
}

}

private EmailNotificationSettings GetConfiguration()
Expand Down Expand Up @@ -168,7 +165,7 @@ private async Task Send(MimeMessage message, EmailNotificationSettings settings)
// Note: since we don't have an OAuth2 token, disable
// the XOAUTH2 authentication mechanism.
client.AuthenticationMechanisms.Remove("XOAUTH2");

client.Authenticate(settings.EmailUsername, settings.EmailPassword);

await client.SendAsync(message);
Expand All @@ -185,7 +182,7 @@ private async Task EmailTest(NotificationModel model, EmailNotificationSettings
{
var message = new MimeMessage
{
Body = new TextPart("plain") {Text= "This is just a test! Success!"},
Body = new TextPart("plain") { Text = "This is just a test! Success!" },
Subject = "Plex Requests: Test Message!",
};
message.From.Add(new MailboxAddress(settings.EmailSender, settings.EmailSender));
Expand Down
15 changes: 12 additions & 3 deletions PlexRequests.UI/Content/Themes/OriginalBootstrapCustom.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
.home {
padding-top: 4rem; } }

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #fff; }

hr {
border-color: #777; }

.btn {
border-radius: 0.25rem !important; }

Expand Down Expand Up @@ -219,7 +227,7 @@ label {
position: absolute;
right: 45px;
z-index: 3;
top: 13px;
top: 10px;
box-shadow: 0 0 0; }

.input-group-addon .btn-group .btn {
Expand All @@ -238,9 +246,10 @@ label {
padding: 12px 8px; }

#updateAvailable {
background-color: #ffa400;
background-color: #df691a;
text-align: center;
font-size: 15px; }
font-size: 15px;
padding: 3px 0; }

.checkbox label {
display: inline-block;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions PlexRequests.UI/Content/Themes/OriginalBootstrapCustom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ $i:
}
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #fff;
}

hr {
border-color: #777;
}

.btn {
border-radius: .25rem $i;
}
Expand Down Expand Up @@ -279,7 +289,7 @@ $border-radius: 10px;
position: absolute;
right: 45px;
z-index: 3;
top: 13px;
top: 10px;
box-shadow: 0 0 0;
}

Expand All @@ -303,9 +313,10 @@ $border-radius: 10px;
}

#updateAvailable {
background-color: rgb(255, 164, 0);
background-color: #df691a;
text-align: center;
font-size: 15px;
padding: 3px 0;
}

.checkbox label {
Expand Down
18 changes: 15 additions & 3 deletions PlexRequests.UI/Content/Themes/PlexBootstrapCustom.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
.home {
padding-top: 4rem; } }

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #fff; }

hr {
border-color: #777; }

body.update-available {
margin-top: 80px; }

.btn {
border-radius: 0.25rem !important; }

Expand Down Expand Up @@ -219,7 +230,7 @@ label {
position: absolute;
right: 45px;
z-index: 3;
top: 13px;
top: 10px;
box-shadow: 0 0 0; }

.input-group-addon .btn-group .btn {
Expand All @@ -238,9 +249,10 @@ label {
padding: 12px 8px; }

#updateAvailable {
background-color: #ffa400;
background-color: #df691a;
text-align: center;
font-size: 15px; }
font-size: 15px;
padding: 3px 0; }

.checkbox label {
display: inline-block;
Expand Down
Loading

0 comments on commit e419727

Please sign in to comment.