null+****@clear*****
null+****@clear*****
Thu Jul 12 23:56:34 JST 2012
SHIMADA Koji 2012-07-12 23:56:34 +0900 (Thu, 12 Jul 2012) New Revision: d97f71668550d966344dc85b52f44caa6e01af16 https://github.com/logaling/logaling-server/commit/d97f71668550d966344dc85b52f44caa6e01af16 Merged ba9eeff: Merge pull request #5 from logaling/show-terms-of-glossary Log: Preapre term partial for glossaries#show Added files: app/views/glossaries/_term.html.haml Modified files: app/views/glossaries/show.html.haml Added: app/views/glossaries/_term.html.haml (+8 -0) 100644 =================================================================== --- /dev/null +++ app/views/glossaries/_term.html.haml 2012-07-12 23:56:34 +0900 (535b399) @@ -0,0 +1,8 @@ +.term.well + %span.source-language.label= term[:source_language] + %span.source-term= term[:source_term] + %span.target-language.label= term[:target_language] + %span.target-term= term[:target_term] + - if term[:note].present? + %i.icon-pencil + %span.note= term[:note] Modified: app/views/glossaries/show.html.haml (+1 -2) =================================================================== --- app/views/glossaries/show.html.haml 2012-07-12 20:16:19 +0900 (24fe0fc) +++ app/views/glossaries/show.html.haml 2012-07-12 23:56:34 +0900 (7353f26) @@ -7,5 +7,4 @@ = "%s-%s" % [@glossary.source_language, @glossary.target_language] -****@gloss***** do |term| - = render :partial => 'shared/term', :locals => {:term => term} - + = render :partial => 'term', :locals => {:term => term} -------------- next part -------------- An HTML attachment was scrubbed... 다운로드