forked from bofh/fetsite
facebookpublish,themen fixes
This commit is contained in:
12
app/views/home/admin.html.erb
Normal file
12
app/views/home/admin.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<p><%= link_to "Grant extra FB privileges", user_omniauth_authorize_path(:facebook,:params=>{scope:"manage_pages,publish_actions,email"}) %>
|
||||
</p>
|
||||
<p>
|
||||
<%= link_to "user", users_path %>
|
||||
</p>
|
||||
<p>
|
||||
<%= @fbu.to_yaml.to_s %>
|
||||
|
||||
<%= semantic_form_for :set_page, url: fb_set_default_publish_page_user_path(current_user), html:{method: :get} do |f| %>
|
||||
<%= f.input :page , :input_html => { :name => 'page' }%>
|
||||
<% end %>
|
||||
</p>
|
||||
@@ -3,7 +3,8 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<%= link_to "Adressliste", internlist_fetprofiles_path %>
|
||||
<%= link_to "Internes Nachschlagewerk" %>
|
||||
<%= link_to "Admin" , admin_home_index_path if current_user.has_role?(:fetadmin) %>
|
||||
|
||||
<ul class="unstyled linkbox-list">
|
||||
<li>
|
||||
<% @themengruppen.each do |themengruppe| %>
|
||||
@@ -14,7 +15,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<%= link_to "Users", users_path %>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<h2>Neuigkeiten</h2>
|
||||
@@ -28,4 +29,3 @@
|
||||
</div>
|
||||
|
||||
<h2></h2>
|
||||
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
$("#themaview").html("<%= escape_javascript(raw("<h2>"+I18n.t('thema.edit')+"</h2>")+render(:partial=>"themen/form", :locals=>{:remote=>true}) )%>");
|
||||
|
||||
|
||||
|
||||
54
app/views/themengruppen/verwalten_all.html.erb
Normal file
54
app/views/themengruppen/verwalten_all.html.erb
Normal file
@@ -0,0 +1,54 @@
|
||||
|
||||
<%= render :partial=>'layouts/pretty_toolbar' %>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="span4">
|
||||
<ul id="themengruppen" class="sort" >
|
||||
<% @themengruppen.each do |themengruppe| %>
|
||||
<li id="themengruppen_<%= themengruppe.id %>" class="sort" style="background:white;display:block;" ><%= themengruppe.title %>-<%= themengruppe.priority %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<ul id="themengruppen_intern" class="sort" >
|
||||
<% @themengruppen_intern.each do |themengruppe| %>
|
||||
<li id="themengruppen_<%= themengruppe.id %>" class="sort" style="background:white;display:block;" ><%= themengruppe.title %>-<%= themengruppe.priority %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<script>
|
||||
$( document ).ready(function(){
|
||||
$("#themengruppen").sortable({
|
||||
cursor: 'crosshair',
|
||||
drag:true,
|
||||
update: function(){
|
||||
$.ajax({
|
||||
url: '<%= sort_themengruppen_themengruppen_path() %>',
|
||||
type: 'post',
|
||||
data: $('#themengruppen').sortable('serialize'),
|
||||
dataType: 'script',
|
||||
complete: function(request){
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
$( document ).ready(function(){
|
||||
$("#themengruppen_intern").sortable({
|
||||
cursor: 'crosshair',
|
||||
drag:true,
|
||||
update: function(){
|
||||
$.ajax({
|
||||
url: '<%= sort_themengruppen_themengruppen_path() %>',
|
||||
type: 'post',
|
||||
data: $('#themengruppen_intern').sortable('serialize'),
|
||||
dataType: 'script',
|
||||
complete: function(request){
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user