[logaling-commit] logaling/logaling-server [master] Style star(set user config) button

Back to archive index

SUZUKI Miho null+****@clear*****
Wed Oct 3 19:43:09 JST 2012


SUZUKI Miho	2012-10-03 19:43:09 +0900 (Wed, 03 Oct 2012)

  New Revision: 592a52cd93d48ac5f9fe152d63f3781d96a698c7
  https://github.com/logaling/logaling-server/commit/592a52cd93d48ac5f9fe152d63f3781d96a698c7

  Merged 7780c24: Merge pull request #24 from logaling/style-star-btn

  Log:
    Style star(set user config) button
    
    - todo: toggle star/star-empty

  Modified files:
    app/views/dashboard/show.html.haml

  Modified: app/views/dashboard/show.html.haml (+14 -14)
===================================================================
--- app/views/dashboard/show.html.haml    2012-10-03 16:14:09 +0900 (a5fee97)
+++ app/views/dashboard/show.html.haml    2012-10-03 19:43:09 +0900 (d1f80dd)
@@ -13,13 +13,13 @@
       %li
         = link_to user_glossary.link_text, user_glossary_path(current_user, user_glossary)
         %span.btn-group.actions
-          = form_for @user_config, url: @user_config.submit_path_for(current_user), :html => { :class => "btn btn-mini" } do |f|
-            = f.hidden_field :glossary_name, value: user_glossary.glossary_name
-            = f.hidden_field :source_language, value: user_glossary.source_language
-            = f.hidden_field :target_language, value: user_glossary.target_language
-            %label{ :for => "commit_#{user_glossary.id}" }
-              %i{ :class => 'icon-star' }
-            = f.submit '', :class => 'hidden', :id => "commit_#{user_glossary.id}"
+          %label{ :for => "commit_#{user_glossary.id}", :class => "btn btn-mini" }
+            %i{ :class => 'icon-star' }
+            = form_for @user_config, url: @user_config.submit_path_for(current_user), :html => {:style => "margin:0;"} do |f|
+              = f.hidden_field :glossary_name, value: user_glossary.glossary_name
+              = f.hidden_field :source_language, value: user_glossary.source_language
+              = f.hidden_field :target_language, value: user_glossary.target_language
+              = f.submit '', :class => 'hidden', :id => "commit_#{user_glossary.id}"
           = link_to raw("<i class=icon-file></i>"), new_user_glossary_path(current_user, original_user_glossary_id: user_glossary.id), { :class => 'btn btn-mini' }
           = link_to raw("<i class=icon-trash></i>"), user_glossary_path(current_user, user_glossary), method: :delete, :class => 'btn btn-mini'
 
@@ -41,10 +41,10 @@
               - bilingual_pair = [glossary.source_language, glossary.target_language].join('-')
               = link_to "#{glossary.source_language} #{glossary.target_language}", github_project_glossary_path(:id => bilingual_pair, :github_project_id => github_project)
               %span.btn-group.actions
-                = form_for @user_config, url: @user_config.submit_path_for(current_user), :html => { :class => "btn btn-mini" } do |f|
-                  = f.hidden_field :glossary_name, value: glossary.name
-                  = f.hidden_field :source_language, value: glossary.source_language
-                  = f.hidden_field :target_language, value: glossary.target_language
-                  %label{ :for => "commit_github_project_glossary_#{i}" }
-                    %i{ :class => 'icon-star' }
-                  = f.submit '', :class => 'hidden', :id => "commit_github_project_glossary_#{i}"
+                %label{ :for => "commit_github_project_glossary_#{i}", :class => "btn btn-mini" }
+                  %i{ :class => 'icon-star' }
+              = form_for @user_config, url: @user_config.submit_path_for(current_user), :html => { :style => "margin:0;" } do |f|
+                = f.hidden_field :glossary_name, value: glossary.name
+                = f.hidden_field :source_language, value: glossary.source_language
+                = f.hidden_field :target_language, value: glossary.target_language
+                = f.submit '', :class => 'hidden', :id => "commit_github_project_glossary_#{i}"
-------------- next part --------------
An HTML attachment was scrubbed...
다운로드 



More information about the logaling-commit mailing list
Back to archive index