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