Completely remove user interface

Remove the user interface and leave only the admin interface.
This commit is contained in:
Petko Bordjukov 2014-11-05 11:25:09 +02:00
parent 6fb3532f01
commit fd9e53e1c0
38 changed files with 5 additions and 1971 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -1,15 +0,0 @@
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require_directory .

View File

@ -1,31 +0,0 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any styles
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require library/styles/reset
*= require library/styles/typography
*= require library/layouts/2c-r-fixed
*= require library/styles/images
*= require library/styles/default
*= require library/styles/plugins
*= require library/styles/openfest
*= require_directory .
*= require_self
*/
#main {
font-size: 16px;
}
h1 {
margin: 0 0 1em 0;
font-size: 2em;
}

View File

@ -1,36 +0,0 @@
.lecture-title {
font-family: Arial,sans-serif;
font-size: 26px;
font-weight: bold;
line-height: 26px;
padding: 0px 0px 7px;
font-style: italic;
span.subtitle {
font-size: 18px;
font-style: italic;
color: #999;
}
}
.abstract, .description {
h3 {
font-family: Arial,sans-serif;
margin-top: 14px;
font-size: 21px;
font-style: italic;
font-weight: bold;
}
p {
text-indent: 10px;
margin-top: 0px;
margin-bottom: 0px;
padding: 0;
width: 600px;
}
p:last-of-type {
margin-bottom: 15px;
}
}

View File

@ -1,18 +0,0 @@
#flash_messages {
border: 1px solid #CCC;
background-color: #F1F1F1;
padding: 10px;
margin: 0px 100px 10px 100px;
div {
text-align: center;
}
.notice {
color: green;
}
.alert {
color: orange;
}
}

View File

@ -1,140 +0,0 @@
.alert-error {
color: red;
}
.input {
position: relative;
margin: 0 0 1em 0;
border-top: 0.1em dotted #999;
padding: 1em 0;
}
.input label {
font-size: 1em;
display: block;
width: 12em;
float: left;
}
.input {
input.string, input.email, input.password, select.select, input.numeric {
font-size: 1em;
width: 20em;
float: left;
}
textarea {
height: 15em;
width: 50em;
}
img {
padding: 5px;
display: block;
border: 1px solid #CCC;
background-color: #F1F1F1;
}
img+input.image_preview {
margin-left: 12.7em;
}
}
.input label.boolean {
margin-left: 12em;
}
.input .hint, .input .error {
display: block;
clear: both;
font-size: 0.75em;
font-style: italic;
width: 20em;
margin: 0 0 0 16em;
padding: 1em 0 0 0;
}
.input .error {
font-style: normal;
padding: 1em 0 0 0;
color: #F00;
}
.input .error::before {
content: "";
display: inline-block;
font-size: 2em;
margin: 0 0.2em 0 0;
transform: translate(0, 0.1em);
}
.btn {
display: block;
margin: 2em 0 0 13em;
}
/* styling of the button */
.btn {
background: #233e83;
padding: 0.4em 0.8em;
border-radius: 0.2em;
color: #FFF;
border: none;
border-bottom: 0.2em solid #7A95DC;
cursor: pointer;
transition: background 200ms, border 200ms, transform 200ms;
-webkit-transition: background 200ms, border 200ms, transform 200ms;
}
.btn:hover {
background: #152551;
}
.btn:active {
background: #597AD2;
border-bottom: 0.2em solid #000;
transform: translate(0, 0.1em);
-webkit-transform: translate(0, 0.1em);
}
.centered {
text-align: center;
}
.large {
padding: 30px;
}
.btn-link {
background: #233e83;
padding: 0.4em 0.8em;
border-radius: 0.2em;
color: #FFF;
border: none;
border-bottom: 0.2em solid #7A95DC;
cursor: pointer;
transition: background 200ms, border 200ms, transform 200ms;
-webkit-transition: background 200ms, border 200ms, transform 200ms;
}
.btn-link:link, .btn-link:active, .btn-link:visited {
color: #FFF;
text-decoration: none;
}
.btn-link:hover {
background: #152551;
}
.btn-link:active {
background: #597AD2;
border-bottom: 0.2em solid #000;
transform: translate(0, 0.1em);
-webkit-transform: translate(0, 0.1em);
}
.btn-link-large {
font-size: 2em;
}

View File

@ -1,68 +0,0 @@
/*
LAYOUT: One-Column (Right) Fixed
DESCRIPTION: Two-column 950px fixed layout with one sidebar right of content
*/
body {
min-width:1000px;
}
#header {
position:relative;
}
#branding {
width:980px;
margin:0 auto;
}
#access {
position:relative;
overflow:hidden;
}
.menu {
width:980px;
margin:0 auto;
}
#main {
width:1000px;
margin:0 auto;
overflow:hidden;
position:relative;
}
#container {
width:620px;
float:left;
}
#content {
margin:0 0 0 10px;
width:640px;
overflow:hidden;
}
.main-aside {
width:300px;
float:right;
position:relative;
right:10px;
}
#primary, #secondary, #ternary {
clear:right;
}
#footer {
clear:both;
}
#subsidiary {
width:940px;
margin:0 auto;
overflow:hidden;
}
#subsidiary .aside {
width:300px;
float:left;
margin:0 20px 0 0;
}
#subsidiary #third {
margin:0;
}
#siteinfo {
clear:both;
width:940px;
margin:0 auto;
}

File diff suppressed because it is too large Load Diff

View File

@ -1,64 +0,0 @@
/* --------------------------------------------------------------
Default styles for Images
-------------------------------------------------------------- */
.entry-content img {
margin: 0 0 18px 0;
}
.alignleft,
img.alignleft {
float: left;
margin-right:20px;
}
.alignright,
img.alignright {
display: block;
float: right;
margin-left:20px;
}
.aligncenter,
img.aligncenter {
margin-left:auto;
margin-right:auto;
display: block;
clear: both;
}
.wp-caption {
text-align: center;
margin-bottom:18px;
}
.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}
.wp-caption p.wp-caption-text {
margin: 0;
padding:5px;
}
.gallery img {
margin:0;
}
.wp-smiley { /* Prevent the smileys from breaking line-height */
max-height:12px;
margin:0 !important;
}
/*
Adapt the following for use in your Child Themes when using
different font-sizes and line-heights
.entry-content img,
.wp-caption {
margin-bottom:--px;
}
.wp-smiley {
max-height:--px;
}
All other styles can be overridden--or ignored!--in Child Theme stylesheets
*/

View File

@ -1,34 +0,0 @@
div#index-bottom {
border: 0 !important;
padding: 0 !important;
margin: 0 !important;
}
#index-bottom ul {
padding: 0 !important;
}
#index-top, #index-top-english {
border: 0 !important;
}
.program table td, .program table th {
padding-left: 13px;
padding-top: -2px;
padding-bottom: -2px;
border-bottom: 1px solid #FFFFFF;
}
.opentech {
background-color: #D1B6E7;
text: #000000;
}
.openbiz {
background-color: #a6e3d0;
text: #000000;
}
.bsdcon {
background-color: #FF6666;
text: #000000;
}
.social {
background-color: #A2D2FF;
text: #000000;
}

View File

@ -1,27 +0,0 @@
/* --------------------------------------------------------------
Default plugin styles for Thematic
-------------------------------------------------------------- */
/* =Ajax Edit Comments
-------------------------------------------------------------- */
.edit-comment {
margin-bottom:18px;
}
/* =PageNavi
-------------------------------------------------------------- */
/* I'm not overriding PageNavi anymore, it's too much of a mess.
/* =WordPress Stats
-------------------------------------------------------------- */
img#wpstats { /* hide WordPress Stats smiley */
width:0px;
height:0px;
overflow:hidden
}

View File

@ -1,64 +0,0 @@
/* --------------------------------------------------------------
Reset default browser CSS.
Based on work by Eric Meyer:
http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */
/* v1.0 | 20080212 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
background:#fff;
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
/* remember to highlight inserts somehow! */
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}
a img { border: none; }

View File

@ -1,141 +0,0 @@
/* --------------------------------------------------------------
Set default typography based on Blueprint
http://code.google.com/p/blueprintcss/
-------------------------------------------------------------- */
body, input, textarea {
color:#000;
font: 12px Arial,sans-serif;
line-height:18px;
}
/* Headings
-------------------------------------------------------------- */
h1,h2,h3,h4,h5,h6 {
font-weight:normal;
clear:both;
}
/* Text elements
-------------------------------------------------------------- */
p {
margin-bottom:18px;
}
ul {
margin: 0 0 18px 2.5em;
}
ol {
margin: 0 0 18px 2.5em;
}
ul {
list-style:disc;
}
ol {
list-style-type: decimal;
}
ol ol {
list-style:upper-alpha;
}
ol ol ol {
list-style:lower-roman;
}
ol ol ol ol {
list-style:lower-alpha;
}
ul ul, ol ol, ul ol, ol ul {
margin-bottom:0;
}
dl {
margin:0 1.5em;
}
dt {
font-weight:bold;
}
dd {
margin-bottom:18px;
}
strong {
font-weight: bold;
}
cite, em, i {
font-style: italic;
}
blockquote {
margin: 0 3em;
}
blockquote em, blockquote i, blockquote cite {
font-style:normal;
}
pre {
font:11px Monaco, monospace;
line-height:18px;
margin-bottom:18px;
}
code {
font:11px Monaco, monospace;
}
abbr, acronym {
border-bottom:1px dotted #333;
cursor: help;
}
ins {
text-decoration:none;
}
sup,
sub {
height: 0;
line-height: 1;
vertical-align: baseline;
position: relative;
}
sup {
bottom: 1ex;
}
sub {
top: .5ex;
}
/* Pullquotes
-------------------------------------------------------------- */
blockquote.left {
float: left;
margin-left:0;
margin-right:20px;
text-align: right;
width: 33%;
}
blockquote.right {
float: right;
margin-left:20px;
margin-right:0;
text-align: left;
width: 33%;
}
/*
Adapt the following for use in your Child Themes when using
different font-sizes and line-heights
body, input, textarea {
font: --px Arial,sans-serif;
line-height:--px;
}
p, ul, ol, dd, pre {
margin-bottom:--px;
}
pre, code {
font:--px Monaco, monospace;
line-height:--px;
}
All other styles can be overridden--or ignored!--in Child Theme stylesheets
*/

View File

@ -19,11 +19,14 @@ class ApplicationController < ActionController::Base
I18n.locale = params[:locale] || I18n.default_locale
end
layout 'management'
protected
def configure_permitted_parameters
devise_parameter_sanitizer.for(:account_update) do |u|
u.permit(:email, :password, :password_confirmation, :current_password, speaker_profile_attributes: [:first_name, :last_name, :public_email, :organisation, :github, :twitter, :mobile_phone, :biography, :picture, :id])
u.permit :email, :password, :password_confirmation, :current_password, :first_name, :last_name
end
end
end

View File

@ -1,5 +0,0 @@
class HomeController < ApplicationController
def index
@current_conference = Conference.first
end
end

View File

@ -1,13 +0,0 @@
# -*- coding: utf-8 -*-
class EventMailer < ActionMailer::Base
def new_event_notification(event)
@event = event
mail(to: 'core@openfest.org', subject: "Ново предложение за #{@event.class.model_name.human.mb_chars.downcase.to_s}: #{@event.title}")
end
def acceptance_notification(event)
@event = event
I18n.locale = @event.language
mail to: @event.user.email, from: 'program@openfest.org', subject: I18n.t('event_mailer.acceptance_notification.subject', conference: @event.conference.title, submission_type: @event.class.model_name.human.mb_chars.downcase.to_s, title: @event.title)
end
end

View File

@ -1,18 +0,0 @@
Здравейте,
Радваме се да Ви съобщим, че предложението ви за участие в <%= @event.conference.title %> с <%= @event.class.model_name.human.mb_chars.downcase.to_s %> на тема „<%= @event.title %>“ беше одобрено.
Първоначален вариант на програмата можете да видите тук:
http://wwwt.openfest.org/bg/programa/
Моля, потвърдете участието си възможно най-скоро като кликнете на следния линк:
<% if @event.is_a? Lecture %>
<%= confirm_lecture_url(@event) %>
<% elsif @event.is_a? Workshop %>
<%= confirm_workshop_url(@event) %>
<% end %>
Отговорете на този email, ако възникнат някакви въпроси.
Поздрави,
Екипът на <%= @event.conference.title %>

View File

@ -1,18 +0,0 @@
Hello,
We are happy to notify you that your request for participation in <%= @event.conference.title %> with the <%= @event.class.model_name.human.mb_chars.downcase.to_s %> titled "<%= @event.title %>" was approved.
The initial conference schedule can be found here:
http://wwwt.openfest.org/en/schedule/
Please confirm your participation as soon as you can by following the following link:
<% if @event.is_a? Lecture %>
<%= confirm_lecture_url(@event, locale: 'en') %>
<% elsif @event.is_a? Workshop %>
<%= confirm_workshop_url(@event, locale: 'en') %>
<% end %>
Please respond to this email in case you have any questions.
Regards,
The <%= @event.conference.title %> Team

View File

@ -1,24 +0,0 @@
Здравейте,
Беше получено следното предложение за <%= @event.class.model_name.human.mb_chars.downcase.to_s %>:
Потребител: <%= @event.user.email %>
Заглавие: <%= @event.title %>
Подзаглавие: <%= @event.subtitle %>
Поток: <%= @event.track.name %>
Продължителност: <%= @event.length %> мин.
Език: <%= @event.language %>
Резюме:
<%= @event.abstract %>
Описание:
<%= @event.description %>
Забележки:
<%= @event.notes %>

View File

@ -1,6 +0,0 @@
li
strong
= track.name
span.separator<>
span
= track.description

View File

@ -1,14 +0,0 @@
h1.entry-title = t :home_title, conference: @current_conference.title
= simple_format @current_conference.description
p = t :what_we_ask
ul
= render partial: 'track', collection: @current_conference.tracks
p = t :license_notice
.centered.large
=> link_to t(:submit_lecture), new_lecture_path, class: 'btn-link btn-link-large'
= link_to t(:submit_workshop), new_workshop_path, class: 'btn-link btn-link-large'

View File

@ -1,26 +0,0 @@
doctype html
html
head
meta charset="utf-8"
title
= Conference.current.try :title
=< yield :title if content_for? :title
= stylesheet_link_tag 'application'
= csrf_meta_tags
body
#wrapper.hfeed
header#header
#branding
#blog-title
span
= link_to 'http://openfest.org/', title: 'OpenFest', rel: 'home' do
= image_tag 'logo-header.png', alt: 'OpenFest'
h1#blog-description
= t(:of_motto)
#access
== render partial: '/shared/nav'
#main
== render(partial: '/shared/flash_messages') unless flash.empty?
== yield
= javascript_include_tag 'application'

View File

@ -1,15 +0,0 @@
== simple_form_for @lecture do |form|
p
= form.error_notification
.form-inputs
= form.input :title, autofocus: true
= form.input :subtitle
= form.input :track_id, collection: Conference.current.tracks.map { |track| [track.name, track.id, {title: track.description}] }, required: true
= form.input :length
= form.input :language, collection: I18n.available_locales, include_blank: false, default: I18n.locale
= form.input :abstract
= form.input :description
= form.input :notes
= form.input :agreement, as: :boolean
= form.button :submit

View File

@ -1 +0,0 @@
li = link_to lecture.title, lecture

View File

@ -1,3 +0,0 @@
- content_for(:title) { ":: #{t :edit_talk} #{@lecture.title}" }
h1.entry-title = t :edit_talk
= render 'form'

View File

@ -1,10 +0,0 @@
- content_for(:title) { ":: #{t :my_talks}" }
h1.entry-title = t :my_talks
- unless @lectures.empty?
ul
= render @lectures
- else
p = t :no_talks_submitted
= link_to t(:submit_lecture), new_lecture_path, class: 'btn-link'

View File

@ -1,3 +0,0 @@
- content_for(:title) { ":: #{t :submit_talk_header}" }
h1.entry-title = t :submit_talk_header
= render 'form'

View File

@ -1,18 +0,0 @@
- content_for(:title) { ":: #{@lecture.title}" }
h2.lecture-title
=> @lecture.title
span.subtitle = @lecture.subtitle
.entry-meta
= t :edit_title, track: @lecture.track.name, len: @lecture.length
section.abstract
h3 = t :abstract
= simple_format @lecture.abstract
section.description
h3 = t :description
= simple_format @lecture.description
- if current_user == @lecture.user
= link_to t(:edit), edit_lecture_path(@lecture), class: 'btn-link'

View File

@ -1,3 +0,0 @@
div#flash_messages
- flash.each do |key, value|
= content_tag :div, value, class: "flash #{key}"

View File

@ -1,26 +0,0 @@
nav.menu
ul.sf-menu.sf-js-enabled
== content_tag :li, class: [('current_page_item' if controller_name == 'home')] do
= link_to t(:home), root_path
- unless user_signed_in?
== content_tag :li, class: [('current_page_item' if controller_name == 'sessions')] do
= link_to t(:login), new_user_session_path
- else
== content_tag :li, class: [('current_page_item' if controller_name == 'lectures')] do
= link_to t(:talks), lectures_path
== content_tag :li, class: [('current_page_item' if controller_name == 'workshops')] do
= link_to t(:workshops), workshops_path
== content_tag :li, class: [('current_page_item' if controller_name == 'registrations')] do
= link_to t(:edit_speaker_profile), edit_user_registration_path
li
= link_to t(:logout), destroy_user_session_path, method: :delete
li
- if I18n.locale != :en
= link_to 'English', root_url(locale: 'en')
- elsif I18n.locale != :bg
= link_to 'Български', root_url(locale: 'bg')

View File

@ -1,15 +0,0 @@
== simple_form_for @workshop do |form|
p
= form.error_notification
.form-inputs
= form.input :title, autofocus: true
= form.input :subtitle
= form.input :track_id, collection: Conference.current.tracks.map { |track| [track.name, track.id, {title: track.description}] }, required: true
= form.input :length, input_html: {value: 60}
= form.input :language, collection: I18n.available_locales, include_blank: false, default: I18n.locale
= form.input :abstract
= form.input :description
= form.input :notes
= form.input :agreement, as: :boolean
= form.button :submit

View File

@ -1 +0,0 @@
li = link_to workshop.title, workshop

View File

@ -1,4 +0,0 @@
- content_for(:title) { ":: #{t :edit_workshop} #{@workshop.title}" }
h1.entry-title = t :edit_workshop
= render 'form'

View File

@ -1,11 +0,0 @@
- content_for(:title) { ":: #{t :my_workshops}" }
h1.entry-title = t :my_workshops
- unless @workshops.empty?
ul
= render @workshops
- else
p = t :no_workshops_submitted
= link_to t(:submit_workshop), new_workshop_path, class: 'btn-link'

View File

@ -1,4 +0,0 @@
- content_for(:title) { ":: #{t :new_workshop_title}" }
h1.entry-title = t :new_workshop_title
= render 'form'

View File

@ -1,19 +0,0 @@
- content_for(:title) { ":: #{@workshop.title}" }
h2.workshop-title
= @workshop.title
span.subtitle = @workshop.subtitle
.entry-meta
= t :edit_title, track: @workshop.track.name, len: @workshop.length
section.abstract
h3 = t :abstract
= simple_format @workshop.abstract
section.description
h3 = t :description
= simple_format @workshop.description
- if current_user == @workshop.user
= link_to t(:edit), edit_workshop_path(@workshop), class: 'btn-link'

View File

@ -32,5 +32,5 @@ Rails.application.routes.draw do
end
end
root 'home#index'
root 'management/events#index'
end

View File

@ -1,12 +0,0 @@
require 'rails_helper'
RSpec.describe HomeController, :type => :controller do
describe "GET index" do
it "returns http success" do
get :index
expect(response).to be_success
end
end
end