diff --git a/app/assets/fonts/icons.eot b/app/assets/fonts/icons.eot
index a1cc83d43..81c974cd3 100644
Binary files a/app/assets/fonts/icons.eot and b/app/assets/fonts/icons.eot differ
diff --git a/app/assets/fonts/icons.svg b/app/assets/fonts/icons.svg
index 049938913..da328ba6e 100644
--- a/app/assets/fonts/icons.svg
+++ b/app/assets/fonts/icons.svg
@@ -30,4 +30,9 @@
+
+
+
+
+
diff --git a/app/assets/fonts/icons.ttf b/app/assets/fonts/icons.ttf
index aa9c63faa..207ad475e 100644
Binary files a/app/assets/fonts/icons.ttf and b/app/assets/fonts/icons.ttf differ
diff --git a/app/assets/fonts/icons.woff b/app/assets/fonts/icons.woff
index b17f63445..fe9c25404 100644
Binary files a/app/assets/fonts/icons.woff and b/app/assets/fonts/icons.woff differ
diff --git a/app/assets/stylesheets/icons.scss b/app/assets/stylesheets/icons.scss
index 6a014579c..5d521a9ce 100644
--- a/app/assets/stylesheets/icons.scss
+++ b/app/assets/stylesheets/icons.scss
@@ -106,4 +106,18 @@
.icon-flag:before {
content: "w";
}
-
+.icon-notification:before {
+ content: "x";
+}
+.icon-comment:before {
+ content: "y";
+}
+.icon-reply:before {
+ content: "z";
+}
+.icon-facebook:before {
+ content: "A";
+}
+.icon-google-plus:before {
+ content: "B";
+}
\ No newline at end of file
diff --git a/app/assets/stylesheets/participacion.scss b/app/assets/stylesheets/participacion.scss
index e20a2cb36..116b57ff8 100644
--- a/app/assets/stylesheets/participacion.scss
+++ b/app/assets/stylesheets/participacion.scss
@@ -14,6 +14,7 @@
// 12. Official levels
// 13. Pagination
// 14. Tables
+// 15. Social
//
// 01. Variables
@@ -856,4 +857,122 @@ table {
}
}
+// 15. Social
+// - - - - - - - - - - - - - - - - - - - - - - - - -
+.button.button-twitter {
+ background: #45B0E3;
+
+ &:before {
+ background: #40A2D1;
+ content: "f";
+ font-family: "icons" !important;
+ font-size: rem-calc(24);
+ left: 0;
+ line-height: $line-height*2;
+ padding: 0 rem-calc(20);
+ position: absolute;
+ top: 0;
+ }
+}
+
+.social-share-button-twitter {
+ background: #45B0E3;
+ color: white;
+ height: rem-calc(48);
+ position: relative;
+ width: rem-calc(48);
+
+ &:before {
+ content: "f";
+ font-family: "icons" !important;
+ font-size: rem-calc(24);
+ left: 50%;
+ line-height: $line-height*2;
+ margin-left: rem-calc(-11);
+ position: absolute;
+ top: 0;
+ }
+
+ &:hover {
+ color: #40A2D1;
+ }
+}
+
+.button.button-facebook {
+ background: #3B5998;
+
+ &:before {
+ background: #354F88;
+ content: "A";
+ font-family: "icons" !important;
+ font-size: rem-calc(24);
+ left: 0;
+ line-height: $line-height*2;
+ padding: 0 rem-calc(20);
+ position: absolute;
+ top: 0;
+ }
+}
+
+.social-share-button-facebook {
+ background: #3B5998;
+ color: white;
+ height: rem-calc(48);
+ position: relative;
+ width: rem-calc(48);
+
+ &:before {
+ content: "A";
+ font-family: "icons" !important;
+ font-size: rem-calc(24);
+ left: 50%;
+ line-height: $line-height*2;
+ margin-left: rem-calc(-11);
+ position: absolute;
+ top: 0;
+ }
+
+ &:hover {
+ color: #354F88;
+ }
+}
+
+.button.button-google {
+ background: #DE4C34;
+
+ &:before {
+ background: #CE3E26;
+ content: "B";
+ font-family: "icons" !important;
+ font-size: rem-calc(24);
+ left: 0;
+ line-height: $line-height*2;
+ padding: 0 rem-calc(20);
+ position: absolute;
+ top: 0;
+ }
+}
+
+.social-share-button-google_plus {
+ background: #DE4C34;
+ color: white;
+ height: rem-calc(48);
+ position: relative;
+ width: rem-calc(48);
+
+ &:before {
+ content: "B";
+ font-family: "icons" !important;
+ font-size: rem-calc(24);
+ left: 50%;
+ line-height: $line-height*2;
+ margin-left: rem-calc(-11);
+ position: absolute;
+ top: 0;
+ }
+
+ &:hover {
+ color: #CE3E26;
+ }
+}
diff --git a/app/views/devise/_omniauth_form.html.erb b/app/views/devise/_omniauth_form.html.erb
index fdd812b4f..63e73d160 100644
--- a/app/views/devise/_omniauth_form.html.erb
+++ b/app/views/devise/_omniauth_form.html.erb
@@ -1,7 +1,11 @@
-
-
-<%= link_to t("omniauth.twitter.sign_in"), user_omniauth_authorize_path(:twitter), class: 'button radius expand' %>
-<%= link_to t("omniauth.facebook.sign_in"), user_omniauth_authorize_path(:facebook), class: 'button radius expand' %>
-<%= link_to t("omniauth.google_oauth2.sign_in"), user_omniauth_authorize_path(:google_oauth2), class: 'button radius expand' %>
-
-
+<% if current_page?(new_user_session_path) %>
+ <%= link_to t("omniauth.twitter.sign_in"), user_omniauth_authorize_path(:twitter), class: "button-twitter button radius expand" %>
+ <%= link_to t("omniauth.facebook.sign_in"), user_omniauth_authorize_path(:facebook), class: "button-facebook button radius expand" %>
+ <%= link_to t("omniauth.google_oauth2.sign_in"), user_omniauth_authorize_path(:google_oauth2), class: "button-google button radius expand" %>
+
+<% elsif current_page?(new_user_registration_path) %>
+ <%= link_to t("omniauth.twitter.sign_up"), user_omniauth_authorize_path(:twitter), class: "button-twitter button radius expand" %>
+ <%= link_to t("omniauth.facebook.sign_up"), user_omniauth_authorize_path(:facebook), class: "button-facebook button radius expand" %>
+ <%= link_to t("omniauth.google_oauth2.sign_up"), user_omniauth_authorize_path(:google_oauth2), class: "button-google button radius expand" %>
+
+<% end %>
\ No newline at end of file
diff --git a/config/locales/devise_views.en.yml b/config/locales/devise_views.en.yml
index 08a303834..79676f2ee 100644
--- a/config/locales/devise_views.en.yml
+++ b/config/locales/devise_views.en.yml
@@ -58,7 +58,7 @@ en:
password_label: "Password"
password_confirmation_label: "Confirm password"
submit: "Sign up"
- organization_signup: "Do you represent an organization / group?"
+ organization_signup: "Do you represent an organization / group? Enter here"
organizations:
registrations:
new:
diff --git a/config/locales/devise_views.es.yml b/config/locales/devise_views.es.yml
index 6ab6ebbb5..a1ab6dcd3 100644
--- a/config/locales/devise_views.es.yml
+++ b/config/locales/devise_views.es.yml
@@ -58,7 +58,7 @@ es:
password_label: "Contraseña"
password_confirmation_label: "Confirmar contraseña"
submit: "Registrarse"
- organization_signup: "¿Representas a una organización / colectivo?"
+ organization_signup: "¿Representas a una organización / colectivo? Entra aquí"
organizations:
registrations:
new:
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 322cf585f..049f15435 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -152,7 +152,10 @@ en:
title: Add Email
twitter:
sign_in: Sign in with Twitter
+ sign_up: Sign up with Twitter
facebook:
sign_in: Sign in with Facebook
+ sign_up: Sign up with Facebook
google_oauth2:
sign_in: Sign in with Google
+ sign_up: Sign up with Google
diff --git a/config/locales/es.yml b/config/locales/es.yml
index 5c21c039e..58ae07441 100644
--- a/config/locales/es.yml
+++ b/config/locales/es.yml
@@ -152,7 +152,10 @@ es:
title: Añade tu email
twitter:
sign_in: Entra con Twitter
+ sign_up: Regístrate con Twitter
facebook:
sign_in: Entra con Facebook
+ sign_up: Regístrate con Facebook
google_oauth2:
sign_in: Entra con Google
+ sign_up: Regístrate con Google
diff --git a/spec/features/users_spec.rb b/spec/features/users_spec.rb
index 1fa30bcbe..829dcba03 100644
--- a/spec/features/users_spec.rb
+++ b/spec/features/users_spec.rb
@@ -74,7 +74,7 @@ feature 'Users' do
expect do
expect do
expect do
- click_link 'Sign in with Twitter'
+ click_link 'Sign up with Twitter'
end.not_to change { ActionMailer::Base.deliveries.size }
end.to change { Identity.count }.by(1)
end.to change { User.count }.by(1)
@@ -109,7 +109,7 @@ feature 'Users' do
expect do
expect do
expect do
- click_link 'Sign in with Twitter'
+ click_link 'Sign up with Twitter'
end.not_to change { ActionMailer::Base.deliveries.size }
end.to change { Identity.count }.by(1)
end.to change { User.count }.by(1)