From 05c37cf4fda28ec4a395567c18ebd36eb2d01f80 Mon Sep 17 00:00:00 2001 From: Larissa Reis Date: Wed, 13 Aug 2014 09:16:01 -0300 Subject: [PATCH] profile-suggestions: adds missing views for connections page --- app/views/friends/connections.html.erb | 7 +++++++ app/views/memberships/connections.html.erb | 7 +++++++ app/views/shared/_profile_connections.html.erb | 20 ++++++++++++++++++++ 3 files changed, 34 insertions(+), 0 deletions(-) create mode 100644 app/views/friends/connections.html.erb create mode 100644 app/views/memberships/connections.html.erb create mode 100644 app/views/shared/_profile_connections.html.erb diff --git a/app/views/friends/connections.html.erb b/app/views/friends/connections.html.erb new file mode 100644 index 0000000..faa6c5a --- /dev/null +++ b/app/views/friends/connections.html.erb @@ -0,0 +1,7 @@ +

<%= _("Connections with %s") % @suggestion.suggestion.name %>

+ +<% button_bar do %> + <%= button(:back, _('Go to friends list'), :controller => 'friends') %> +<% end %> + +<%= render :partial => 'shared/profile_connections', :locals => { :suggestion => @suggestion, :tags => @tags, :profiles => @profiles } %> diff --git a/app/views/memberships/connections.html.erb b/app/views/memberships/connections.html.erb new file mode 100644 index 0000000..acaa4c1 --- /dev/null +++ b/app/views/memberships/connections.html.erb @@ -0,0 +1,7 @@ +

<%= _("Connections with %s") % @suggestion.suggestion.name %>

+ +<% button_bar do %> + <%= button(:back, _('Go to groups list'), :controller => 'memberships') %> +<% end %> + +<%= render :partial => 'shared/profile_connections', :locals => { :suggestion => @suggestion, :tags => @tags, :profiles => @profiles } %> diff --git a/app/views/shared/_profile_connections.html.erb b/app/views/shared/_profile_connections.html.erb new file mode 100644 index 0000000..8ee0b09 --- /dev/null +++ b/app/views/shared/_profile_connections.html.erb @@ -0,0 +1,20 @@ +

<%= _("Profiles in common:") if profiles.present? %>

+
+ +
+ +
+ +

<%= _("Tags in common:") if tags.present? %>

+ -- libgit2 0.21.2