-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
58 changed files
with
4,966 additions
and
383 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div class="subnavigation clearfix"> | ||
<h2>Alle Benutzer</h2> | ||
<div class="functions"> | ||
<%= link_to "» Neuer Benutzer", new_backend_user_path %> | ||
</div> | ||
</div> | ||
<ul id="category-list" class="category record-list"> | ||
<% for user in @users do %> | ||
<li class="row clearfix"> | ||
<div class="column title"> | ||
<span> | ||
<%= link_to user.email, backend_user_path(user) %> | ||
</span> | ||
</div> | ||
<div class="column options"> | ||
<a href="javascript:void(0);"><img src="/vrame/images/admin/led-<%= if user.active then 'green' else 'red' end %>.png" alt="" /></A> | ||
<%= link_to '<img src="/vrame/images/admin/edit.png" border="0" alt="Editieren" title="Editieren" />', edit_backend_user_path(user) %> | ||
<%= link_to '<img src="/vrame/images/admin/delete.png" border="0" alt="Löschen" title="Löschen" />', [:backend, user], :method => :delete, :confirm => 'Wirklich löschen?' %> | ||
</div> | ||
</li> | ||
<% end %> | ||
</ul> |
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,18 @@ | ||
<h2>Benutzer <%=h @user.email %></h2> | ||
|
||
<table width="100%"> | ||
<tr> | ||
<td><strong>E-Mail:</strong></td> | ||
<td><%=h @user.email %></td> | ||
</tr> | ||
<tr> | ||
<td><strong>Aktiv:</strong></td> | ||
<td><img src="/vrame/images/admin/led-<%= if @user.active then 'green' else 'red' end %>.png" alt="" /></td> | ||
</tr> | ||
<tr> | ||
<td><strong>Administrator:</strong></td> | ||
<td><img src="/vrame/images/admin/led-<%= if @user.admin then 'green' else 'red' end %>.png" alt="" /></td> | ||
</tr> | ||
</table><br /> | ||
|
||
<%= link_to 'Benutzer bearbeiten', edit_backend_user_path(@user) %> |
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,34 @@ | ||
<div | ||
data-category-id="<%= category.to_param %>" | ||
class="category clearfix level-<%= level.to_s %> <%= 'active-category' if @active_category.id == category.id %>"> | ||
|
||
<div class="column order"> | ||
<%= link_to '<img src="/vrame/images/admin/arrow_up.png" alt="Nach oben verschieben" title="Nach oben verschieben" />', [:order_up, :vrame, category] %> | ||
<%= link_to '<img src="/vrame/images/admin/arrow_down.png" alt="Nach unten verschieben" title="Navh unten verschieben" />', [:order_down, :vrame, category] %> | ||
</div> | ||
|
||
<div class="column options"> | ||
<% if category.published %> | ||
<%= link_to '<img src="/vrame/images/admin/led-green.png" alt="Verstecken" title="Verstecken" />', [:unpublish, :vrame, category] %> | ||
<% else %> | ||
<%= link_to '<img src="/vrame/images/admin/led-red.png" alt="Veröffentlichen" title="Veröffentlichen" />', [:publish, :vrame, category] %> | ||
<% end %> | ||
<%= link_to '<img src="/vrame/images/admin/edit.png" alt="Editieren" title="Editieren" />', [:edit, :vrame, category] %> | ||
<%= link_to '<img src="/vrame/images/admin/delete.png" alt="Löschen" title="Löschen" />', [:vrame, category], :method => :delete, :confirm => 'Wirklich löschen?' %> | ||
<%= link_to '<img src="/vrame/images/admin/page_add.png" alt="Dokument hinzufügen" title="Dokument hinzufügen" />', | ||
category.backend_url.empty? ? [:new, :vrame, category, :document] : category.backend_url_path + '/new' | ||
%> | ||
<%= link_to '<img src="/vrame/images/admin/magnifier.png" alt="Vorschau" title="Vorschau" />', | ||
category.url.empty? ? category : "/#{category.url}" | ||
%> | ||
</div> | ||
|
||
<div class="column title"> | ||
<% if category.backend_url.empty? %> | ||
<%= link_to category_title(category), category, :class => "category-button" %> | ||
<% else %> | ||
<%= link_to category_title(category), category.backend_url_path, :class => 'backend-url' %> | ||
<% end %> | ||
</div> | ||
|
||
</div><!-- /.category --> |
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,65 +1,70 @@ | ||
<ul id="ui-sortable"> | ||
<% documents.each do |document| %> | ||
<li id="document-<%=h document.id %>" class="document clearfix"> | ||
<div class="column title"> | ||
<span> | ||
<%= link_to h(document.title), [:edit, :vrame, document] %> | ||
</span> | ||
</div> | ||
|
||
<div class="image"> | ||
<% if document.meta and document.meta.schema.has_field?(:image) %> | ||
<img src="<%= document.meta.image.file.url(:vrame_backend) %>" /> | ||
<% elsif document.meta and document.meta.schema.has_field?(:bild) %> | ||
<img src="<%= document.meta.bild.file.url(:vrame_backend) %>" /> | ||
<% else %> | ||
| ||
<% end %> | ||
</div> | ||
|
||
<div class="column slug" title="Numerische ID: <%=h document.id %>"> | ||
<%= link_to h(document.to_param), document %> | ||
</div> | ||
|
||
<div class="column options"> | ||
<% if document.published %> | ||
<%= link_to '<img src="/vrame/images/admin/led-green.png" border="0" alt="Verstecken" title="Verstecken" />', [:unpublish, :vrame, document] %> | ||
<% else %> | ||
<%= link_to '<img src="/vrame/images/admin/led-red.png" border="0" alt="Veröffentlichen" title="Veröffentlichen" />', [:publish, :vrame, document] %> | ||
<% end %> | ||
<%= link_to '<img src="/vrame/images/admin/edit.png" border="0" alt="Editieren" title="Editieren" />', [:edit, :vrame, document] %> | ||
<%= link_to '<img src="/vrame/images/admin/delete.png" border="0" alt="Löschen" title="Löschen" />', [:vrame, document], :method => :delete, :confirm => 'Wirklich löschen?' %> | ||
</div> | ||
</li> | ||
<% end %> | ||
<% if category != nil and documents.size == 0 %> | ||
<li class="document clearfix"> | ||
<div class="column"> | ||
Die Kategorie "<%=h category.title %>" enthält noch keine Dokumente. Wollen Sie ein <%= link_to "Dokument hinzufügen", category.backend_url.empty? ? [:new, :vrame, category, :document] : category.backend_url_path + '/new' %>? | ||
</div> | ||
</li> | ||
<% documents.each do |document| %> | ||
|
||
<% image = nil %> | ||
<% %w(image bild photo foto).each do |field_name| %> | ||
<% next unless document.meta.schema.has_field?(field_name) %> | ||
<% field = document.meta.send[field_name] %> | ||
<% if field.file.file? %> | ||
<% image = image_tag(field.file.url(:vrame_backend), :alt => '') %> | ||
<% break %> | ||
<% end %> | ||
<% end %> | ||
|
||
<li id="document-<%=h document.id %>" class="document clearfix"> | ||
|
||
<div class="column title <%= 'long-title' unless image %>"> | ||
<%= link_to h(document.title), [:edit, :vrame, document], :title => 'Editieren' %> | ||
</div> | ||
|
||
<% if image %> | ||
<div class="column image"><%= image %></div> | ||
<% end %> | ||
|
||
<div class="column slug"> | ||
<%= link_to h(document.to_param), [:edit, :vrame, document], :title => 'Editieren' %> | ||
</div> | ||
|
||
<div class="column options"> | ||
<% if document.published %> | ||
<%= link_to '<img src="/vrame/images/admin/led-green.png" alt="Verstecken" title="Verstecken" />', [:unpublish, :vrame, document] %> | ||
<% else %> | ||
<%= link_to '<img src="/vrame/images/admin/led-red.png" alt="Veröffentlichen" title="Veröffentlichen" />', [:publish, :vrame, document] %> | ||
<% end %> | ||
<%= link_to '<img src="/vrame/images/admin/edit.png" alt="Editieren" title="Editieren" />', [:edit, :vrame, document] %> | ||
<%= link_to '<img src="/vrame/images/admin/delete.png" alt="Löschen" title="Löschen" />', [:vrame, document], :method => :delete, :confirm => 'Wirklich löschen?' %> | ||
<%= link_to '<img src="/vrame/images/admin/magnifier.png" alt="Vorschau" title="Vorschau" />', document %> | ||
</div> | ||
</li> | ||
<% end %> | ||
<% if category != nil and documents.size == 0 %> | ||
<li class="document clearfix"> | ||
<div class="column add-document"> | ||
Die Kategorie „<%=h category.title %>“ enthält noch keine Dokumente. Wollen Sie ein <%= link_to "Dokument hinzufügen", category.backend_url.empty? ? [:new, :vrame, category, :document] : category.backend_url_path + '/new' %>? | ||
</div> | ||
</li> | ||
<% end %> | ||
</ul> | ||
|
||
<% if documents.first %> | ||
<script type="text/javascript"> | ||
jQuery(function($) { | ||
$("#ui-sortable").sortable({ | ||
update: function(event, ui) { | ||
var data = $("#ui-sortable").sortable('serialize'); | ||
|
||
$('#ajax-loading-bar').fadeIn('fast'); | ||
$.ajax({ | ||
type: "POST", | ||
url: "/vrame/categories/<%=h documents.first.category.id %>/sort", | ||
processData: false, | ||
data: data + '&authenticity_token=' + encodeURIComponent('<%= form_authenticity_token if protect_against_forgery? %>'), | ||
success: function(msg) { | ||
$('#ajax-loading-bar').stop().fadeOut('fast'); | ||
} | ||
}); | ||
jQuery(function($) { | ||
$("#ui-sortable").sortable({ | ||
update: update | ||
}); | ||
function update (event, ui) { | ||
var data = $("#ui-sortable").sortable('serialize'); | ||
$('#ajax-loading-bar').fadeIn('fast'); | ||
$.ajax({ | ||
type: "POST", | ||
url: "/vrame/categories/<%=h documents.first.category.id %>/sort", | ||
processData: false, | ||
data: data + '&authenticity_token=' + encodeURIComponent('<%= form_authenticity_token if protect_against_forgery? %>'), | ||
success: function(msg) { | ||
$('#ajax-loading-bar').stop().fadeOut('fast'); | ||
} | ||
}); | ||
}); | ||
</script> | ||
} | ||
}); | ||
</script> | ||
<% 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
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,20 @@ | ||
<div class="subnavigation clearfix"> | ||
<div class="functions"> | ||
<%= link_to 'Neues Dokument', new_vrame_category_document_path(@active_category), :class => 'button', :id => 'active-category-new-document' %> | ||
<%= link_to 'Neue Unterkategorie', new_vrame_category_category_path(@active_category), :class => 'button', :id => 'active-category-new-category' %> | ||
<%= link_to 'Kategorie editieren', edit_vrame_category_path(@active_category), :class => 'button', :id => 'active-category-edit' %> | ||
</div> | ||
|
||
<h2>Kategorie-Übersicht <span id="active-category-name"></span></h2> | ||
</div> | ||
|
||
<div class="content-view clearfix" class="clearfix"> | ||
<div class="categories"> | ||
<% category_tree @categories do |category, level| %> | ||
<%= render :partial => 'vrame/categories/category', :locals => { :category => category, :level => level } %> | ||
<% end %> | ||
</div> | ||
<div id="items" class="items"> | ||
<%= render :partial => 'vrame/categories/documents', :locals => { :documents => @documents, :category => @active_category } %> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.