Skip to content
Snippets Groups Projects
Commit 05de57c0 authored by alexisben's avatar alexisben
Browse files

Merge branch 'master' of https://github.com/noesya/osuny

parents 210ef1ea 0db59e18
No related branches found
No related tags found
No related merge requests found
...@@ -11,9 +11,9 @@ class Admin::Communication::UnsplashController < Admin::Communication::Applicati ...@@ -11,9 +11,9 @@ class Admin::Communication::UnsplashController < Admin::Communication::Applicati
query: params[:query], query: params[:query],
page: (params[:page].presence || 1), page: (params[:page].presence || 1),
per_page: (params[:per_page].presence || 10), per_page: (params[:per_page].presence || 10),
orientation: (params[:orientation].presence || 'squarish'),
lang: (params[:lang].presence || 'en') lang: (params[:lang].presence || 'en')
} }
p[:orientation] = params[:orientation] if params.has_key? :orientation
@search = Unsplash::Search.search "/search/photos", Unsplash::Photo, p @search = Unsplash::Search.search "/search/photos", Unsplash::Photo, p
@total = @search.total @total = @search.total
@total_pages = @search.total_pages @total_pages = @search.total_pages
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<tr> <tr>
<th><%= Education::Diploma.human_attribute_name('name') %></th> <th><%= Education::Diploma.human_attribute_name('name') %></th>
<th><%= Education::Diploma.human_attribute_name('short_name') %></th> <th><%= Education::Diploma.human_attribute_name('short_name') %></th>
<th><%= Education::Diploma.human_attribute_name('ects') %></th>
<th><%= Education::Diploma.human_attribute_name('level') %></th> <th><%= Education::Diploma.human_attribute_name('level') %></th>
<th><%= Education::Diploma.human_attribute_name('programs') %></th> <th><%= Education::Diploma.human_attribute_name('programs') %></th>
<th></th> <th></th>
...@@ -13,6 +14,7 @@ ...@@ -13,6 +14,7 @@
<tr> <tr>
<td><%= link_to diploma, [:admin, diploma] %></td> <td><%= link_to diploma, [:admin, diploma] %></td>
<td><%= diploma.short_name %></td> <td><%= diploma.short_name %></td>
<td><%= diploma.ects %></td>
<td><%= diploma.level_i18n %></td> <td><%= diploma.level_i18n %></td>
<td><%= diploma.programs.count %></td> <td><%= diploma.programs.count %></td>
<td class="text-end"> <td class="text-end">
......
...@@ -3,4 +3,8 @@ title: > ...@@ -3,4 +3,8 @@ title: >
<%= @about.name %> <%= @about.name %>
short_name: > short_name: >
<%= @about.short_name %> <%= @about.short_name %>
level: <%= @about.level_i18n %>
ects: <%= @about.ects %>
duration: >
<%= prepare_text_for_static @about.duration %>
--- ---
...@@ -42,14 +42,11 @@ roles: ...@@ -42,14 +42,11 @@ roles:
roles: [] roles: []
<% end %> <% end %>
continuing: <%= @about.continuing %> continuing: <%= @about.continuing %>
level: <%= @about.diploma&.level %>
ects: <%= @about.diploma&.ects %>
<% <%
[ [
:accessibility, :accessibility,
:contacts, :contacts,
:content, :content,
:duration,
:evaluation, :evaluation,
:objectives, :objectives,
:opportunities, :opportunities,
......
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