forked from bofh/fetsite
Merge branch 'wiki'
This commit is contained in:
@@ -4,6 +4,17 @@
|
||||
<div class="span6">
|
||||
<%= link_to "Adressliste", internlist_fetprofiles_path %>
|
||||
<%= link_to "Internes Nachschlagewerk" %>
|
||||
<ul class="unstyled linkbox-list">
|
||||
<li>
|
||||
<% @themengruppen.each do |themengruppe| %>
|
||||
<div class="container-fluid">
|
||||
<%= render themengruppe if can?(:show,themengruppe)%>
|
||||
</div>
|
||||
<% end %>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="span6">
|
||||
<h2>Neuigkeiten</h2>
|
||||
|
||||
@@ -5,5 +5,3 @@
|
||||
|
||||
<%= render :partial=>'layouts/pretty_toolbar' %>
|
||||
|
||||
<%= link_to new_thema_attachment_path(@thema) ,:remote=>true do %> new Attachment <% end %>
|
||||
<%= render :partial => "themen/select", :object => @thema, :locals=>{:editor => :false} %>
|
||||
|
||||
@@ -1,31 +1,23 @@
|
||||
<div class="content-wrap content-column">
|
||||
<%= render :partial=>'layouts/pretty_toolbar' %>
|
||||
<p> <%= link_to "FAQS", faqs_themengruppen_path,class: :btn %></p>
|
||||
<ul class="unstyled linkbox-list">
|
||||
<li>
|
||||
<% @themengruppen.each do |themengruppe| %>
|
||||
|
||||
|
||||
|
||||
<%= render :partial=>'layouts/pretty_toolbar' %>
|
||||
<p>
|
||||
<%= link_to "FAQS", faqs_themengruppen_path,class: :btn %>
|
||||
</p>
|
||||
<ul class="unstyled linkbox-list">
|
||||
<li>
|
||||
<% @themengruppen.each do |themengruppe| %>
|
||||
<div class="container-fluid">
|
||||
<%= render themengruppe %>
|
||||
<br/>
|
||||
<div class="row-fluid">
|
||||
<!--
|
||||
<%= link_to 'Edit', edit_themengruppe_path(themengruppe) %>
|
||||
-->
|
||||
</div>
|
||||
<%= render themengruppe if can?(:show,themengruppe)%>
|
||||
</div>
|
||||
|
||||
|
||||
<% end %>
|
||||
</li>
|
||||
</ul>
|
||||
<% end %>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
</div>
|
||||
<script class="hidden-phone">
|
||||
|
||||
<script class="hidden-phone">
|
||||
|
||||
<!-- make_equal_height();
|
||||
-->
|
||||
</script>
|
||||
|
||||
51
app/views/themes/blue1/home/index.html.erb
Normal file
51
app/views/themes/blue1/home/index.html.erb
Normal file
@@ -0,0 +1,51 @@
|
||||
<div class="content-wrap content-column">
|
||||
<h1><%= I18n.t('home.willkommen') %></h1></p>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
|
||||
|
||||
<p>
|
||||
<%= link_to I18n.t('home.login'), user_omniauth_authorize_path(:ldap) %>
|
||||
</p>
|
||||
<div class="alert">
|
||||
<h2>Beta Test</h2>
|
||||
<p>Die Webseite befindet sich derzeit in einem Entwicklungsstadium,
|
||||
volle Funktionsfähigkeit ist noch nicht erreicht. Bitte Featurerequests und
|
||||
Fehlermeldungen auf GitHub melden.
|
||||
</p>
|
||||
<p>
|
||||
<%= link_to "Issues", "http://www.github.com/fetsite/fetsite/issues" %>
|
||||
</p>
|
||||
<p>
|
||||
Bezüglich Design und Steuerung sind Vorschläge erwünscht.
|
||||
</p>
|
||||
<p><%= link_to "Steuerelemente und Komponenten", "http://getbootstrap.com/2.3.2/index.html" %></p>
|
||||
<p>Um bei der Entwicklung mitzuhelfen braucht nur Ruby on Rails installiert werden</p>
|
||||
<p><%= link_to "Getting Started" , startdev_home_index_path %></p>
|
||||
<p> Das Kalender Feature wird überarbeitet, in Zukunft soll folgender Link nicht mehr funktionieren <%= link_to "Kalender", calendars_path %>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<%= link_to "Entwicklungsstatus" , dev_home_index_path %>
|
||||
<%= render 'beispiele' %>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<ul class="unstyled linkbox-list" style="max-width:70em">
|
||||
<% @neuigkeiten.each do |n| %>
|
||||
<li><%= render n if can?(:show, n) %> </li>
|
||||
<% end %>
|
||||
</ul>
|
||||
Verschiedene Styles
|
||||
<ul>
|
||||
<li> <%= link_to "Darkblue", home_index_path({:theme=>"darkblue"}) %></li>
|
||||
<li> <%= link_to "Blue1", home_index_path({:theme=>"blue1"}) %></li>
|
||||
|
||||
<li> <%= link_to "2003", home_index_path({:theme=>"2003"}) %></li>
|
||||
<li> <%= link_to "white_1", home_index_path({:theme=>"white_1"}) %></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
38
app/views/wikis/_form.html.erb
Normal file
38
app/views/wikis/_form.html.erb
Normal file
@@ -0,0 +1,38 @@
|
||||
<%= tinymce_assets %>
|
||||
<div class="container-fluid">
|
||||
<%= semantic_form_for @wiki do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<%= f.input :title %>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<%= f.input :themengruppe %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<%= f.input :wikiformat, :as=>:select, :collection=>Wiki::WIKIFORMATS.invert %>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<%= f.input :hidelink, :as=>:boolean %>
|
||||
|
||||
<%= @wiki.wikiname %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<%= f.input :raw_data, :label=>false,:as=>:text, :input_html=>{:rows=>20,:class=>"row-fluid"} %>
|
||||
</div>
|
||||
</div>
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :button %>
|
||||
<%= f.action :cancel, :as => :link %>
|
||||
<% end %>
|
||||
<% end %><% end %>
|
||||
<%= tinymce %>
|
||||
<h2>Attachments:</h2>
|
||||
|
||||
|
||||
|
||||
5
app/views/wikis/edit.html.erb
Normal file
5
app/views/wikis/edit.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<div id="themaview">
|
||||
<h1>Editing thema</h1>
|
||||
<%= render 'form' %>
|
||||
</div>
|
||||
</br><%= link_to 'Back', @thema %>
|
||||
9
app/views/wikis/show.html.erb
Normal file
9
app/views/wikis/show.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
<%= link_to "Zurück", @wiki.themengruppe %>
|
||||
<br>
|
||||
<%= debug @wiki %>
|
||||
<%= render :partial=>"themen/small", :object=>@wiki %>
|
||||
|
||||
|
||||
<%= render :partial=>'layouts/pretty_toolbar' %>
|
||||
|
||||
8
app/views/wikis/verwalten.html.erb
Normal file
8
app/views/wikis/verwalten.html.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
verwalte ein wiki
|
||||
|
||||
<%= @wiki %>
|
||||
|
||||
<%= render :partial=>'layouts/pretty_toolbar' %>
|
||||
|
||||
<%= debug @wiki %>
|
||||
<%= debug params %>
|
||||
Reference in New Issue
Block a user