From 65f5a22912c150bbb440564ca78a2abbfbf68b09 Mon Sep 17 00:00:00 2001 From: Dennis Schubert Date: Sat, 13 Dec 2014 04:33:06 +0100 Subject: [PATCH] make pages#formatting pretty again --- app/views/pages/formatting.html.erb | 135 ++++++++++++++-------------- 1 file changed, 66 insertions(+), 69 deletions(-) diff --git a/app/views/pages/formatting.html.erb b/app/views/pages/formatting.html.erb index 182ef7e..88e1369 100644 --- a/app/views/pages/formatting.html.erb +++ b/app/views/pages/formatting.html.erb @@ -1,38 +1,38 @@ <% content_for :page_title, t('.menu_title') %> -<% content_for :wrapper_class, "index_page" %> +<% content_for :wrapper_class, 'index_page' %>

<%= t 'pages.tutorials.headline' %>

-

<%= t '.byline' %>

+

<%= t '.byline' %>

-
-
  -
-
-

<%= t '.format1' %>

-

<%= t '.format2' %>

-

<%= t('.format3').html_safe %>

-

<%= t('.format4').html_safe %>

- -

<%= t '.headings' %>

-

<%= t '.headings_ex1' %>

-
# <%= t '.headings_code1' %>
-		
+  
+
+

<%= t '.format1' %>

+

<%= t '.format2' %>

+

+ <%= t('.format3').html_safe %> + <%= t('.format4').html_safe %> +

+ +

<%= t '.headings' %>

+

<%= t '.headings_ex1' %>

+
# <%= t '.headings_code1' %>
+
 ## <%= t '.headings_code2' %>
 
 ### <%= t '.headings_code3' %>
-

<%= t '.headings_ex2' %>

- -

<%= t '.lists' %>

-

<%= t '.lists_ex1' %>

-

<%= t '.lists_ex2' %>

-

<%= t '.lists_ex3' %>

-
<%= t '.lists_code1' %>
-		
+      

<%= t '.headings_ex2' %>

+ +

<%= t '.lists' %>

+

<%= t '.lists_ex1' %>

+

<%= t '.lists_ex2' %>

+

<%= t '.lists_ex3' %>

+
<%= t '.lists_code1' %>
+
 * <%= t '.lists_code2' %>
 * <%= t '.lists_code3' %>
 * <%= t '.lists_code4' %>
@@ -48,66 +48,63 @@
 1. <%= t '.lists_code2' %>
 2. <%= t '.lists_code3' %>
 3. <%= t '.lists_code4' %>
- -

<%= t '.code' %>

-

<%= t '.code_ex1' %>

-

<%= t '.code_ex2' %>

-

<%= t('.code_ex3').html_safe %>

-
<%= t '.code_code1' %>
-		
+
+      

<%= t '.code' %>

+

<%= t '.code_ex1' %>

+

<%= t '.code_ex2' %>

+

<%= t('.code_ex3').html_safe %>

+
<%= t '.code_code1' %>
+
 ````<%= t '.code_code2' %>````
 
 <%= t '.code_code3' %>
 
     <%= t '.code_code4' %>
-      <%= t '.code_code5' %>
- -

<%= t '.line' %>

-

<%= t '.line_ex' %>

-
<%= t '.line_code1' %>
+      <%= t '.code_code5' %>
+ +

<%= t '.line' %>

+

<%= t '.line_ex' %>

+
<%= t '.line_code1' %>
 
 ---
 
 <%= t '.line_code2' %>
-

<%= t '.itals' %>

-

<%= t '.itals_ex1' %>

-

<%= t('.itals_ex2').html_safe %>

-

<%= t('.itals_ex3').html_safe %>

-

<%= t('.itals_ex4').html_safe %>

-

<%= t '.itals_ex8' %>

- -

<%= t '.links' %>

-

<%= t('.link_ex1', inline_link: link_to(t('.inline_link_text'), formatting_path)).html_safe %>

-
<%= t '.link_code' %>
-

<%= t '.link_ex2' %>

- -

<%= t '.images' %>

-

<%= t '.images_ex1' %>

-
<%= t '.images_code' %>
-

<%= t('.images_ex2').html_safe %>

-

<%= t '.images_ex3' %>

- -

<%= t '.escape' %>

-

<%= t '.escape_ex1' %>

-
<%= t '.escape_code' %>
-

<%= t '.escape_ex2' %>

-

<%= t '.escape_ex3' %>

- -

<%= t '.symbols' %>

-

<%= t '.symbols_ex' %>

-
    +

    <%= t '.itals' %>

    +

    <%= t '.itals_ex1' %>

    +

    <%= t('.itals_ex2').html_safe %>

    +

    <%= t('.itals_ex3').html_safe %>

    +

    <%= t('.itals_ex4').html_safe %>

    +

    <%= t '.itals_ex8' %>

    + +

    <%= t '.links' %>

    +

    <%= t('.link_ex1', inline_link: link_to(t('.inline_link_text'), formatting_path)).html_safe %>

    +
    <%= t '.link_code' %>
    +

    <%= t '.link_ex2' %>

    + +

    <%= t '.images' %>

    +

    <%= t '.images_ex1' %>

    +
    <%= t '.images_code' %>
    +

    <%= t('.images_ex2').html_safe %>

    +

    <%= t '.images_ex3' %>

    + +

    <%= t '.escape' %>

    +

    <%= t '.escape_ex1' %>

    +
    <%= t '.escape_code' %>
    +

    <%= t '.escape_ex2' %>

    +

    <%= t '.escape_ex3' %>

    + +

    <%= t '.symbols' %>

    +

    <%= t '.symbols_ex' %>

    +
    • "->" = "→" ; "<-" = "←" ; "<->" = "↔"
    • "(c)" = "©" ; "(r)" = "®" ; "(tm)" = ™
    • "<3″ = "♥ "
    • "x^2″ = "x²"
    • -
    -

    <%= t('.finish', markdown_link: link_to(t('.markdown_link_text'), "http://daringfireball.net/projects/markdown/syntax")).html_safe %>

    -

     

    -

    <%= link_to t('pages.tutorials.headline'), tutorials_url %> | <%= link_to t('pages.tutorials.started_head'), sign_up_url %>

    - -
-
+ + +

<%= t('.finish', markdown_link: link_to(t('.markdown_link_text'), 'http://daringfireball.net/projects/markdown/syntax')).html_safe %>

+

<%= link_to t('pages.tutorials.headline'), tutorials_url %> | <%= link_to t('pages.tutorials.started_head'), sign_up_url %>