Merge branch 'master' of https://github.com/fetsite/fetsite
This commit is contained in:
@@ -15,45 +15,65 @@
|
||||
|
||||
|
||||
*/
|
||||
// Colorshema #0A64A4
|
||||
$bodyBackground: #FFFFFF;
|
||||
$navbarBackground: #FFCE40;
|
||||
$navbarBackgroundHighlight:#FFDB73;
|
||||
$navbarLinkBackgroundHover:#FFBE00;
|
||||
$infoBackground:#65A5D1;
|
||||
$infoText:#03406A;
|
||||
$linkColor: #03006E;
|
||||
@import 'bootstrap';
|
||||
@import 'bootstrap-responsive';
|
||||
@import 'bootstrap/image-gallery';
|
||||
|
||||
|
||||
h1
|
||||
{font-size: 23px}
|
||||
h2
|
||||
{font-size: 19px}
|
||||
body,html
|
||||
{padding:0;margin:0;}
|
||||
|
||||
div.header
|
||||
{display: block;
|
||||
background: url('/assets/fet_logo_2.png') rgb(235,235,235) no-repeat;
|
||||
background-position:15px center;
|
||||
border-bottom:1px solid black;
|
||||
height:60px;
|
||||
padding-left:160px;
|
||||
padding-top:0px;
|
||||
overflow:hidden;
|
||||
margin-bottom: 20px
|
||||
h1 {
|
||||
font-size: 23px
|
||||
}
|
||||
|
||||
#menudiv
|
||||
{
|
||||
|
||||
width:100%;
|
||||
h2 {
|
||||
font-size: 19px
|
||||
}
|
||||
|
||||
body,html {
|
||||
padding:0;
|
||||
margin:0;
|
||||
|
||||
}
|
||||
a:hover {
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
div.header {
|
||||
display: block;
|
||||
background: url('/assets/fet_logo_2.png') no-repeat;
|
||||
background-color: #0A64A4;
|
||||
background-position:15px center;
|
||||
border-bottom:1px solid black;
|
||||
height:60px;
|
||||
color:#CFCFCF;
|
||||
padding-left:160px;
|
||||
padding-top:0px;
|
||||
overflow:hidden;
|
||||
margin-bottom: 20px
|
||||
}
|
||||
|
||||
#menudiv {
|
||||
width:100%;
|
||||
}
|
||||
|
||||
|
||||
.navbar .nav li {
|
||||
min-width:60%;
|
||||
|
||||
min-width:60%;
|
||||
}
|
||||
.navbar .nav .divider {
|
||||
border-style: solid;
|
||||
border-width: 1px 0px 0px 0px;
|
||||
border-color: grey;
|
||||
min-width: 100%;
|
||||
border-style: solid;
|
||||
border-width: 1px 0px 0px 0px;
|
||||
border-color: grey;
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
#contentdiv{
|
||||
background: #FFFFFF
|
||||
}
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
// Place all the styles related to the neuigkeiten controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
|
||||
|
||||
div .neuigkeit_block {
|
||||
border: 1px solid #ccc;
|
||||
background: white;
|
||||
padding:10px;
|
||||
|
||||
}
|
||||
@@ -1,6 +1,4 @@
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #333;
|
||||
font-family: verdana, arial, helvetica, sans-serif;
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
|
||||
@@ -6,6 +6,8 @@ class NeuigkeitenController < ApplicationController
|
||||
@neuigkeit = Neuigkeit.find(params[:id])
|
||||
if params[:verwalten]
|
||||
@toolbar_elements << {:hicon=>'icon-plus', :text=> I18n.t('neuigkeit.publish'),:path => publish_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit),:confirm=>"Sure?" } if can? :publish, @neuigkeit
|
||||
@toolbar_elements << {:hicon=>'icon-minus', :text=> I18n.t('neuigkeit.unpublish'),:path => unpublish_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit),:confirm=>"Sure?" } if can? :unpublish, @neuigkeit
|
||||
|
||||
|
||||
@toolbar_elements << {:text=>I18n.t('common.edit'),:path=>edit_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit),:icon=>:pencil} if can? :edit, @neuigkeit
|
||||
@toolbar_elements << {:hicon=>'icon-remove-circle', :text=> I18n.t('common.delete'),:path => rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit), :method=> :delete,:confirm=>"Sure?" } if can? :delete, @neuigkeit
|
||||
@@ -20,7 +22,15 @@ class NeuigkeitenController < ApplicationController
|
||||
@rubrik=Rubrik.find(params[:rubrik_id]) unless params[:rubrik_id].nil?
|
||||
@neuigkeit.rubrik=@rubrik unless @rubrik.nil?
|
||||
end
|
||||
|
||||
def unpublish
|
||||
@neuigkeit = Neuigkeit.find(params[:id])
|
||||
@neuigkeit.reverse_publish
|
||||
@neuigkeit.save
|
||||
if params[:verwalten]
|
||||
redirect_to verwalten_rubrik_path(@neuigkeit.rubrik)
|
||||
end
|
||||
redirect_to rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit)
|
||||
end
|
||||
def publish
|
||||
@neuigkeit = Neuigkeit.find(params[:id])
|
||||
@neuigkeit.publish
|
||||
|
||||
@@ -12,7 +12,12 @@ Fehlermeldungen auf GitHub melden.
|
||||
Folgene Features sind schon soweit, dass Bugreports und Feature Requests sinnvoll sind:
|
||||
<ul>
|
||||
<li><b>Studien/Beispielsammlung</b><br>
|
||||
Während dem September werden hier nur Bugfixes und kleine Änderungen passieren. Feature Requests werden erst ab Oktober wieder bearbeitet.</li>
|
||||
<li><b>Neuigkeiten</b></li>
|
||||
<li><b>Informationen</b></li>
|
||||
<li><b>Mitarbeiter</b></li>
|
||||
<li><b>Foto - Galerie</b></li>
|
||||
<li><b>Kalender</b></li>
|
||||
|
||||
</ul>
|
||||
alle anderen sind nur zur Voransicht. Bezüglich Design und Steuerung sind Vorschläge erwünscht.
|
||||
</p>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
<div id="maincontainer" class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="header">
|
||||
<h1 style="display:block;float:none">Fachschaft Elektrotechnik</h1>
|
||||
@@ -24,7 +24,7 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span2 earlymax">
|
||||
<div id="menudiv"><%= render :template => 'layouts/menu' %></div>
|
||||
</div> <div class="span10 earlymax">
|
||||
</div> <div class="span10 earlymax" id="contentdiv">
|
||||
|
||||
<%= yield %>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="navbar">
|
||||
<div class="navbar-inner">
|
||||
<div class="container">
|
||||
<a class="brand" href="#"><%= t 'home.mtitle'%></a>
|
||||
<!-- <a class="brand" href="#"><% t 'home.mtitle'%></a>-->
|
||||
<a class ="btn btn-navbar" data-toggle="collapse" data-parent="#menudiv" data-target=".nav-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
|
||||
@@ -1,15 +1,18 @@
|
||||
|
||||
<%= link_to [neuigkeit.rubrik,neuigkeit] do %>
|
||||
<div class="media">
|
||||
<div class="pull-left" href="#">
|
||||
<p><br><%= image_tag neuigkeit.picture.thumb.url unless neuigkeit.picture.url.nil? %></p>
|
||||
</div>
|
||||
<div class="media-body"><div><small><%= neuigkeit.rubrik.name %></small>
|
||||
<small class="pull-right"><%= "am "+ I18n.l(neuigkeit.try(:datum).try(:to_date)) unless neuigkeit.try(:datum).try(:to_date).nil? %></small> </div>
|
||||
<h1><%= neuigkeit.title%></h1>
|
||||
<%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%>
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="media neuigkeit_block">
|
||||
<div class="pull-left" href="#">
|
||||
<p><br><%= image_tag neuigkeit.picture.thumb.url unless neuigkeit.picture.url.nil? %>
|
||||
</p>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<div>
|
||||
<small><%= neuigkeit.rubrik.name %></small>
|
||||
<small class="pull-right"><%= "am "+ I18n.l(neuigkeit.try(:datum).try(:to_date)) unless neuigkeit.try(:datum).try(:to_date).nil? %></small>
|
||||
</div>
|
||||
<h1><%= neuigkeit.title%></h1>
|
||||
<%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<% end %>
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
resources :neuigkeiten, :except => [:index] do
|
||||
member do
|
||||
get 'publish'
|
||||
get 'unpublish'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user