Skip to content
Snippets Groups Projects
Commit fb8d1a80 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

clean

parent d3a363a8
No related branches found
No related tags found
No related merge requests found
...@@ -11,3 +11,7 @@ main.content ...@@ -11,3 +11,7 @@ main.content
table.table-striped table.table-striped
tbody tbody
background: white background: white
.card-footer
.pagination
margin-bottom: 0
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<li> <li>
<a class="nav-link nav-link--last js-user-button" href="#"> <a class="nav-link nav-link--last js-user-button" href="#">
<% if current_user.picture.attached? && current_user.picture.variable? %> <% if current_user.picture.attached? && current_user.picture.variable? %>
<%= image_tag current_user.picture.variant(resize: '40x40'), class: 'avatar img-fluid rounded-circle' %> <%= image_tag current_user.picture.variant(resize: '80x80'), class: 'avatar img-fluid rounded-circle' %>
<% else %> <% else %>
<%= image_tag 'avatar.jpg', class: 'avatar img-fluid rounded-circle' %> <%= image_tag 'avatar.jpg', class: 'avatar img-fluid rounded-circle' %>
<% end %> <% end %>
......
...@@ -6,52 +6,64 @@ ...@@ -6,52 +6,64 @@
class: button_classes %> class: button_classes %>
<% end %> <% end %>
<h2><%= @imported_posts.count %> posts</h2> <div class="card">
<table class="<%= table_classes %>"> <div class="card-header">
<thead> <h2><%= @imported_posts.count %> posts</h2>
<tr> </div>
<th><%= Communication::Website::Imported::Post.human_attribute_name('title') %></th> <table class="<%= table_classes %>">
<th><%= Communication::Website::Imported::Post.human_attribute_name('original') %></th> <thead>
<th class="text-end" width="150">Generated post</th>
</tr>
</thead>
<tbody>
<% @imported_posts.each do |post| %>
<tr> <tr>
<td><%= post %></td> <th><%= Communication::Website::Imported::Post.human_attribute_name('title') %></th>
<td class="small"><%= link_to post.path, post.url, target: :_blank %></td> <th><%= Communication::Website::Imported::Post.human_attribute_name('original') %></th>
<td class="text-end"> <th class="text-end" width="150">Generated post</th>
<%= link_to t('show'),
admin_communication_website_post_path(website_id: post.post.website.id, id: post.post.id),
class: button_classes %>
</td>
</tr> </tr>
<% end %> </thead>
</tbody> <tbody>
</table> <% @imported_posts.each do |post| %>
<%= paginate @imported_posts, param_name: :posts_page, theme: 'bootstrap-5' %> <tr>
<td><%= post %></td>
<td class="small"><%= link_to post.path, post.url, target: :_blank %></td>
<td class="text-end">
<%= link_to t('show'),
admin_communication_website_post_path(website_id: post.post.website.id, id: post.post.id),
class: button_classes %>
</td>
</tr>
<% end %>
</tbody>
</table>
<div class="card-footer">
<%= paginate @imported_posts, param_name: :posts_page, theme: 'bootstrap-5' %>
</div>
</div>
<h2 class="mt-5"><%= @imported_pages.count %> pages</h2> <div class="card mt-5">
<table class="<%= table_classes %>"> <div class="card-header">
<thead> <h2><%= @imported_pages.count %> pages</h2>
<tr> </div>
<th class="ps-0"><%= Communication::Website::Imported::Page.human_attribute_name('title') %></th> <table class="<%= table_classes %>">
<th><%= Communication::Website::Imported::Page.human_attribute_name('original') %></th> <thead>
<th class="text-end" width="150">Generated page</th>
</tr>
</thead>
<tbody>
<% @imported_pages.each do |page| %>
<tr> <tr>
<td><%= page %></td> <th><%= Communication::Website::Imported::Page.human_attribute_name('title') %></th>
<td class="small"><%= link_to page.path, page.url, target: :_blank %></td> <th><%= Communication::Website::Imported::Page.human_attribute_name('original') %></th>
<td class="text-end"> <th class="text-end" width="150">Generated page</th>
<%= link_to t('show'),
admin_communication_website_page_path(website_id: page.page.website.id, id: page.page.id),
class: button_classes %>
</td>
</tr> </tr>
<% end %> </thead>
</tbody> <tbody>
</table> <% @imported_pages.each do |page| %>
<%= paginate @imported_pages, param_name: :pages_page, theme: 'bootstrap-5' %> <tr>
<td><%= page %></td>
<td class="small"><%= link_to page.path, page.url, target: :_blank %></td>
<td class="text-end">
<%= link_to t('show'),
admin_communication_website_page_path(website_id: page.page.website.id, id: page.page.id),
class: button_classes %>
</td>
</tr>
<% end %>
</tbody>
</table>
<div class="card-footer">
<%= paginate @imported_pages, param_name: :pages_page, theme: 'bootstrap-5' %>
</div>
</div>
<% content_for :title, @university %> <% content_for :title, @university %>
<div class="row"> <div class="row">
<div class="col-md-9"> <div class="col-md-5">
<p> <div class="card">
<%= link_to @university.url, @university.url, target: :_blank %> <div class="card-header">
</p> <h2 class="card-title">Infos</h2>
</div>
<p> <table class="table">
<strong><%= University.human_attribute_name('address') %>:</strong> <tr>
<%= @university.address %> <td>URL</td>
</p> <td class="text-end"><%= link_to @university.url, @university.url, target: :_blank %></td>
</tr>
<p> <% ['address', 'zipcode', 'city', 'country'].each do |variable| %>
<strong><%= University.human_attribute_name('zipcode') %>:</strong> <tr>
<%= @university.zipcode %> <td><%= University.human_attribute_name(variable) %></td>
</p> <td class="text-end"><%= @university.send variable %></td>
</tr>
<p> <% end %>
<strong><%= University.human_attribute_name('city') %>:</strong> <tr>
<%= @university.city %> <td><%= University.human_attribute_name('private') %></td>
</p> <td class="text-end"><%= @university.private %></td>
</tr>
<p> </table>
<strong><%= University.human_attribute_name('country') %>:</strong> </div>
<%= @university.country %>
</p>
<p>
<strong><%= University.human_attribute_name('private') %>:</strong>
<%= @university.private %>
</p>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<%= kamifusen_tag @university.logo, class: 'img-fluid' %> <div class="card">
<div class="card-header">
<h2 class="card-title">Logo</h2>
</div>
<div class="card-body">
<%= kamifusen_tag @university.logo, class: 'img-fluid p-5' %>
</div>
</div>
</div> </div>
</div> </div>
<% content_for :action_bar_right do %> <% content_for :action_bar_right do %>
<%= link_to t('edit'), edit_server_university_path(@university), class: button_classes %> <%= link_to t('edit'), edit_server_university_path(@university), class: button_classes %>
<% end %> <% end %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment