diff --git a/app/assets/stylesheets/details.scss b/app/assets/stylesheets/details.scss index 9c4cdd7..6491bac 100644 --- a/app/assets/stylesheets/details.scss +++ b/app/assets/stylesheets/details.scss @@ -1,3 +1,20 @@ // Place all the styles related to the details controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: https://sass-lang.com/ + +h5 { + font-weight: normal; + opacity: 0.8; +} + +.profile-picture { + float: right; + width: 25%; + + img { + width: 100%; + max-width: 260px; + height: auto; + object-fit: contain; + } +} \ No newline at end of file diff --git a/app/views/people_crawler/show_detail.html.erb b/app/views/people_crawler/show_detail.html.erb index f00a842..ce54c90 100644 --- a/app/views/people_crawler/show_detail.html.erb +++ b/app/views/people_crawler/show_detail.html.erb @@ -1,13 +1,21 @@ <% if @person != nil %> - <% if @person['picture_uri'] != nil %> - <%= image_tag @host + @person['picture_uri'] %> +

<%= @person['first_name'] %> <%= @person['last_name'] %>

+
+ <% if @person['picture_uri'] != nil %> + <%= image_tag @host + @person['picture_uri'] %> + <% end %> +
+
<%= @person['preceding_titles'] %> <%= @person['postpositioned_titles'] %>
+ <% if @person['main_phone_number'] != nil %> +

Phone: <%= @person['main_phone_number'] %>

+ <% end %> +

E-Mail: <%= @person['main_email'] %>

+ <% if @person['other_emails'] != [] %> +

Other E-Mails: <%= @person['other_emails'] %>

+ <% end %> + <% if @person['main_addresses'] != nil %> +

Address: <%= @person['main_addresses'][0]['street'] %>, <%= @person['main_addresses'][0]['zip_code'] %> <%= @person['main_addresses'][0]['city'] %>

<% end %> -

<%= @person['preceding_titles'] %> <%= @person['first_name'] %> <%= @person['last_name'] %>, - <%= @person['gender'] %> <%= @person['postpositioned_titles'] %>

-

Phone: <%= @person['main_phone_number'] %>

-

Mail: <%= @person['main_email'] %>

-

Other mails: <%= @person['other_emails'] %>

-

Main addresses: <%= @person['main_addresses'] %>

<%= button_to 'Add to favorites', action: :add_to_fav, tiss_id: @person['tiss_id'] %> <% end %> \ No newline at end of file