-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
808 additions
and
273 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
@import "bootstrap-sprockets"; | ||
@import "bootstrap"; | ||
|
||
.jumbotron { | ||
padding-top: 0; | ||
background-color: #2A3F54; | ||
color: #ffffff; | ||
} | ||
|
||
// Landing Page CSS | ||
.topnav { | ||
font-size: 14px; | ||
} | ||
|
||
.lead { | ||
font-size: 18px; | ||
font-weight: 400; | ||
} | ||
|
||
.intro-header { | ||
text-align: center; | ||
color: #f8f8f8; | ||
background-color: #2A3F54; | ||
background-size: cover; | ||
} | ||
|
||
.intro-message { | ||
position: relative; | ||
padding-top: 10%; | ||
padding-bottom: 10%; | ||
} | ||
|
||
.intro-message > h1 { | ||
margin: 0; | ||
text-shadow: 2px 2px 3px rgba(0,0,0,0.6); | ||
font-size: 5em; | ||
} | ||
|
||
.intro-divider { | ||
width: 400px; | ||
border-top: 1px solid #f8f8f8; | ||
border-bottom: 1px solid rgba(0,0,0,0.2); | ||
} | ||
|
||
.intro-message > h3 { | ||
text-shadow: 2px 2px 3px rgba(0,0,0,0.6); | ||
} | ||
|
||
@media(max-width:767px) { | ||
.intro-message { | ||
padding-bottom: 15%; | ||
} | ||
|
||
.intro-message > h1 { | ||
font-size: 3em; | ||
} | ||
|
||
ul.intro-social-buttons > li { | ||
display: block; | ||
margin-bottom: 20px; | ||
padding: 0; | ||
} | ||
|
||
ul.intro-social-buttons > li:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
.intro-divider { | ||
width: 100%; | ||
} | ||
} | ||
|
||
.network-name { | ||
text-transform: uppercase; | ||
font-size: 14px; | ||
font-weight: 400; | ||
letter-spacing: 2px; | ||
} | ||
|
||
.content-section-a { | ||
padding: 50px 0; | ||
background-color: #f8f8f8; | ||
} | ||
|
||
.content-section-b { | ||
padding: 50px 0; | ||
border-top: 1px solid #e7e7e7; | ||
border-bottom: 1px solid #e7e7e7; | ||
} | ||
|
||
.section-heading { | ||
margin-bottom: 30px; | ||
} | ||
|
||
.section-heading-spacer { | ||
float: left; | ||
width: 200px; | ||
border-top: 3px solid #e7e7e7; | ||
} | ||
|
||
.banner { | ||
padding: 100px 0; | ||
color: #f8f8f8; | ||
background: url(../img/banner-bg.jpg) no-repeat center center; | ||
background-size: cover; | ||
} | ||
|
||
.banner h2 { | ||
margin: 0; | ||
text-shadow: 2px 2px 3px rgba(0,0,0,0.6); | ||
font-size: 3em; | ||
} | ||
|
||
.banner ul { | ||
margin-bottom: 0; | ||
} | ||
|
||
.banner-social-buttons { | ||
float: right; | ||
margin-top: 0; | ||
} | ||
|
||
@media(max-width:1199px) { | ||
ul.banner-social-buttons { | ||
float: left; | ||
margin-top: 15px; | ||
} | ||
} | ||
|
||
@media(max-width:767px) { | ||
.banner h2 { | ||
margin: 0; | ||
text-shadow: 2px 2px 3px rgba(0,0,0,0.6); | ||
font-size: 3em; | ||
} | ||
|
||
ul.banner-social-buttons > li { | ||
display: block; | ||
margin-bottom: 20px; | ||
padding: 0; | ||
} | ||
|
||
ul.banner-social-buttons > li:last-child { | ||
margin-bottom: 0; | ||
} | ||
} | ||
|
||
footer { | ||
padding: 50px 0; | ||
background-color: #f8f8f8; | ||
} | ||
|
||
p.copyright { | ||
margin: 15px 0 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,8 @@ | ||
class HomeController < ApplicationController | ||
before_action :authenticate_account!, only: :settings | ||
def index; end | ||
|
||
def settings | ||
@settings = current_account.mail_setting | ||
end | ||
layout 'welcome' | ||
skip_before_action :authenticate_account! | ||
|
||
def update_settings | ||
if current_account.mail_setting.update(settings_params) | ||
redirect_to settings_path, notice: 'Settings updated successfully!' | ||
else | ||
redirect_to settings_path, notice: 'Error! Settings not updated!' | ||
end | ||
end | ||
|
||
private | ||
def index; end | ||
|
||
def settings_params | ||
params.require(:settings).permit(:from_email, :reply_to, :address, :port, :domain, :user_name, :password, :provider, | ||
:imap_password, :imap_port, :imap_address, :imap_username) | ||
end | ||
def documentation; end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
class ImapSettingsController < ApplicationController | ||
before_action :set_imap_setting, only: [:edit, :update, :destroy] | ||
|
||
# GET /imap_settings | ||
def index | ||
@imap_settings = current_account.imap_settings.all | ||
end | ||
|
||
# GET /imap_settings/new | ||
def new | ||
unless current_account.smtp_settings.present? | ||
redirect_to smtp_settings_path, notice: 'Please define at least one smtp settings to read reply emails of it.' | ||
return | ||
end | ||
@imap_setting = current_account.imap_settings.new | ||
end | ||
|
||
# GET /imap_settings/1/edit | ||
def edit | ||
end | ||
|
||
# POST /imap_settings | ||
def create | ||
@imap_setting = current_account.imap_settings.new(imap_setting_params) | ||
|
||
respond_to do |format| | ||
if @imap_setting.save | ||
format.html { redirect_to imap_settings_path, notice: 'IMAP setting was successfully created.' } | ||
else | ||
format.html { render :new } | ||
end | ||
end | ||
end | ||
|
||
# PATCH/PUT /imap_settings/1 | ||
def update | ||
respond_to do |format| | ||
if @imap_setting.update(imap_setting_params) | ||
format.html { redirect_to imap_settings_path, notice: 'IMAP setting was successfully updated.' } | ||
else | ||
format.html { render :edit } | ||
end | ||
end | ||
end | ||
|
||
# DELETE /imap_settings/1 | ||
def destroy | ||
@imap_setting.destroy | ||
respond_to do |format| | ||
format.html { redirect_to imap_settings_url, notice: 'IMAP setting was successfully destroyed.' } | ||
end | ||
end | ||
|
||
private | ||
def set_imap_setting | ||
@imap_setting = current_account.imap_settings.find(params[:id]) | ||
end | ||
|
||
def imap_setting_params | ||
params.require(:imap_setting).permit(:address, :port, :email, :password) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.