| Closer - warvox - VoIP based wardialing tool, forked from rapid7/warvox. | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit c078c54129840102135ff8b7cee15f5176b09e3a | |
| parent d2b998dd5f188d4f7c037ae8953471eab9c1fa27 | |
| Author: HD Moore <[email protected]> | |
| Date: Mon, 31 Dec 2012 00:11:03 -0600 | |
| Closer | |
| Diffstat: | |
| M app/assets/stylesheets/bootstrap_a… | 17 ++++++++++++++--- | |
| M app/controllers/home_controller.rb | 12 ++++++++++++ | |
| M app/controllers/user_sessions_cont… | 2 -- | |
| M app/views/layouts/application.html… | 8 +++++--- | |
| M app/views/layouts/login.html.erb | 2 +- | |
| M config/routes.rb | 3 +++ | |
| 6 files changed, 35 insertions(+), 9 deletions(-) | |
| --- | |
| diff --git a/app/assets/stylesheets/bootstrap_and_overrides.css.less b/app/asse… | |
| @@ -38,8 +38,19 @@ body { | |
| @navbarBackground: #ea5709; | |
| @navbarBackgroundHighlight: #4A1C04; | |
| + | |
| +.check-item { | |
| + font-size: 18px; | |
| + margin-bottom: 10px; | |
| +} | |
| +.check-result { | |
| + margin-left: 40px; | |
| + width: 500px; | |
| + font-size: 16px; | |
| +} | |
| + | |
| .project-title { | |
| - font-size: 22px; | |
| + font-size: 18px; | |
| color: @white; | |
| margin-top: 10px; | |
| margin-right: 50px; | |
| @@ -123,8 +134,8 @@ background-image: linear-gradient(to bottom, #EA5709 0%, #0… | |
| #login-logo { | |
| margin-left: auto; | |
| margin-right: auto; | |
| - width: 88px; | |
| - height: 20px; | |
| + width: 222px; | |
| + height: 68px; | |
| margin-top: 60px; | |
| } | |
| diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controll… | |
| @@ -12,4 +12,16 @@ class HomeController < ApplicationController | |
| rescue ::LoadError | |
| end | |
| end | |
| + | |
| + def help | |
| + end | |
| + | |
| + def check | |
| + @has_project = ( Project.count > 0 ) | |
| + @has_provider = ( Provider.count > 0 ) | |
| + @has_job = ( DialJob.count > 0 ) | |
| + @has_result = ( DialResult.where(:completed => true ).count … | |
| + @has_analysis = ( DialResult.where(:processed => true ).count … | |
| + end | |
| + | |
| end | |
| diff --git a/app/controllers/user_sessions_controller.rb b/app/controllers/user… | |
| @@ -10,7 +10,6 @@ class UserSessionsController < ApplicationController | |
| def create | |
| @user_session = UserSession.new(params[:user_session]) | |
| if @user_session.save | |
| - flash[:notice] = "Login successful!" | |
| redirect_back_or_default projects_path | |
| else | |
| render :action => :new | |
| @@ -19,7 +18,6 @@ class UserSessionsController < ApplicationController | |
| def destroy | |
| current_user_session.destroy | |
| - flash[:notice] = "Logout successful!" | |
| redirect_back_or_default login_url | |
| end | |
| end | |
| diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/applica… | |
| @@ -32,7 +32,7 @@ | |
| <%= menu_group :pull => :right do %> | |
| <% if @project and @project.id %> | |
| - <li class="project-title"><%= truncate(@projec… | |
| + <li class="project-title"><%= truncate(@projec… | |
| <%= menu_item "Dial", new_dial_job_path(@proje… | |
| <%= menu_item "Jobs", dial_jobs_path(@project)… | |
| <%= menu_item "Results", dial_results_path(@pr… | |
| @@ -49,14 +49,16 @@ | |
| <% end %> | |
| <% end %> | |
| - <%= drop_down "Administration" do %> | |
| + <%= drop_down "Admin" do %> | |
| <%= menu_item raw('<i class="icon-user… | |
| <%= menu_item raw('<i class="icon-glob… | |
| <%= menu_item raw('<i class="icon-wren… | |
| <%= menu_item raw('<i class="icon-info… | |
| <% end %> | |
| - <%= menu_item "Logout", logout_path %> | |
| + <%= menu_item raw('<div class="help-icon"><i c… | |
| + | |
| + <%= menu_item raw('<div class="help-icon"><i c… | |
| <% end %> | |
| <% end %> | |
| diff --git a/app/views/layouts/login.html.erb b/app/views/layouts/login.html.erb | |
| @@ -28,7 +28,7 @@ | |
| </head> | |
| <body id="login"> | |
| <div id="login-panel"> | |
| - <div id="login-logo"><img src="/assets/logo_light.png" border=0 alt="WarVOX"… | |
| + <div id="login-logo"><img src="/assets/logo_bigger.png" border=0 alt="WarVOX… | |
| <div id="box"> | |
| <%= yield %> | |
| </div> | |
| diff --git a/config/routes.rb b/config/routes.rb | |
| @@ -38,6 +38,9 @@ Web::Application.routes.draw do | |
| match '/projects/:project_id/settings' => 'settings#index', :as => :proje… | |
| match '/about' => 'home#about' | |
| match '/home/about' => 'home#about' | |
| + match '/help' => 'home#help' | |
| + match '/check' => 'home#check', :as => :check | |
| + | |
| root :to => "projects#index" | |
| end |