diff --git a/app/views/helper/_fb_login_and_redirect.html.erb b/app/views/helper/_fb_login_and_redirect.html.erb index e959188..fbed822 100644 --- a/app/views/helper/_fb_login_and_redirect.html.erb +++ b/app/views/helper/_fb_login_and_redirect.html.erb @@ -37,14 +37,5 @@ <% if request.post? %> <% invocation = helper_invocation("#{@helper_name}(request.url", params) %> - -

Invocation

-
- <%= h invocation %> -
- -

Result

-
- <%= render :inline => invocation %> -
+ <%= render :partial => 'invocation_and_result' %> <% end %> diff --git a/app/views/helper/_fb_login_button.html.erb b/app/views/helper/_fb_login_button.html.erb index dd2840b..f4d0d4b 100644 --- a/app/views/helper/_fb_login_button.html.erb +++ b/app/views/helper/_fb_login_button.html.erb @@ -46,14 +46,5 @@ <% if request.post? %> <% invocation = helper_invocation("#{@helper_name}(\"javascript_called_onlogin()\"", params) %> - -

Invocation

-
- <%= h invocation %> -
- -

Result

-
- <%= render :inline => invocation %> -
+ <%= render :partial => 'invocation_and_result' %> <% end %> diff --git a/app/views/helper/_fb_logout_link.html.erb b/app/views/helper/_fb_logout_link.html.erb index 24823c1..1c30e1a 100644 --- a/app/views/helper/_fb_logout_link.html.erb +++ b/app/views/helper/_fb_logout_link.html.erb @@ -16,14 +16,5 @@ <% if request.post? %> <% invocation = helper_invocation("#{@helper_name}(\"#{params[:link_text]}\", \"#{h params[:redirect_url]}\"", {}) %> - -

Invocation

-
- <%= h invocation %> -
- -

Result

-
- <%= render :inline => invocation %> -
+ <%= render :partial => 'invocation_and_result' %> <% end %> diff --git a/app/views/helper/_fb_name.html.erb b/app/views/helper/_fb_name.html.erb index 9014ecd..528dbf6 100644 --- a/app/views/helper/_fb_name.html.erb +++ b/app/views/helper/_fb_name.html.erb @@ -65,14 +65,5 @@ <% if request.post? %> <% invocation = helper_invocation("#{@helper_name}(#{Integer(params[:uid]) rescue '@current_user'}", params) %> - -

Invocation

-
- <%= h invocation %> -
- -

Result

-
- <%= render :inline => invocation %> -
+ <%= render :partial => 'invocation_and_result' %> <% end %> diff --git a/app/views/helper/_fb_profile_pic.html.erb b/app/views/helper/_fb_profile_pic.html.erb index db10ec9..17112a5 100644 --- a/app/views/helper/_fb_profile_pic.html.erb +++ b/app/views/helper/_fb_profile_pic.html.erb @@ -40,14 +40,5 @@ <% if request.post? %> <% invocation = helper_invocation("#{@helper_name}(#{Integer(params[:uid]) rescue '@current_user'}", params) %> - -

Invocation

-
- <%= h invocation %> -
- -

Result

-
- <%= render :inline => invocation %> -
+ <%= render :partial => 'invocation_and_result' %> <% end %> diff --git a/app/views/helper/_invocation_and_result.html.erb b/app/views/helper/_invocation_and_result.html.erb new file mode 100644 index 0000000..4bf18e0 --- /dev/null +++ b/app/views/helper/_invocation_and_result.html.erb @@ -0,0 +1,9 @@ +

Invocation

+
+ <%= h invocation %> +
+ +

Result

+
+ <%= render :inline => invocation %> +