1 = javascript_include_merged(:show).html_safe
4 - @current_class = 'question hentry entry post'
6 - show_close_request_form = !@question.closed && logged_in? && @question.can_be_requested_to_close_by?(current_user)
7 - show_open_request_form = @question.closed && logged_in? && @question.can_be_requested_to_open_by?(current_user)
10 - if current_user.mod_of?(current_group) && @question.closed
11 - show_close_request_form = (@question.close_reason.user_id == current_user.id)
12 - @flag = current_user.has_flagged?(@question) || Flag.new
16 - if show_open_request_form
17 - @open_request = current_user.has_requested_to_open?(@question) || OpenRequest.new
19 - if show_close_request_form
20 - @close_request = @question.close_requests.detect{ |rq| rq.user_id == current_user.id } || CloseRequest.new(:reason => "dupe")
22 - question_body = find_and_preserve(shapado_auto_link(markdown(@question.body.present? ? @question.body : @question.title)))
24 - content_for :head do
25 %meta{:name => "keywords", :content => clean_seo_keywords(@question.tags.dup, @question.title)}
26 %meta{:name => "description", :content => question_body.gsub(/<\/?[^>]*>/, "")[0, 255] }
27 %link{:rel => "canonical", :href => question_url(@question) }
29 %section.main-question
33 =" [#{t("closed", :scope => "activerecord.attributes.question").upcase}]"
48 - if current_user && @question.follower?(current_user)
49 = link_to "Unfollow", unfollow_question_path(@question), :class => 'unfollow-q', "data-undo" => follow_question_path(@question), "data-title" => t(".watch_tooltip"), :title => t(".unwatch_tooltip"), :id => "watch-question"
51 = link_to "Follow", follow_question_path(@question), :title => t(".watch_tooltip"), :class => 'follow-q', "data-undo" => unfollow_question_path(@question), "data-title" => t(".unwatch_tooltip"), :id => "watch-question"
62 - @question.tags.each do |tag|
64 = link_to h(tag), tag_path(:id => tag), :rel => "tag"
65 - if logged_in? && (current_user.can_modify?(@question) || current_user.can_retag_others_questions_on?(current_group))
67 = link_to t('.retag'), retag_question_path(@question), :id => 'retag'
72 = t(".answers_title", :count => @answers.total_entries)
74 %ul{:class => @active_subtab.to_s}
77 = link_to t("questions.index.newest"), question_path(@question, :sort=>"newest", :anchor => "answers"), :rel => "nofollow"
79 = link_to t("questions.index.votes"), question_path(@question, :sort=>"votes", :anchor => "answers"), :rel => "nofollow"
81 = link_to t("questions.index.oldest"), question_path(@question, :sort=>"oldest", :anchor => "answers"), :rel => "nofollow"
83 = link_to "Respuesta elegida"
85 - source = question_path(@question)
86 = error_messages_for 'answer'
88 - content_for :subtabs do
89 %h1.navtitle.title.entry-title
92 =" [#{t("closed", :scope => "activerecord.attributes.question").upcase}]"
97 %b Answered 27 days ago by
110 %p You might want to take a look at the Work Needing and Prospective Packages page, especially with respect to the Requested Packages page. There you can find what people seem to be missing and are looking package maintainers for. The list might look daunting, and there might be things in there not maintained anymore, it definitely needs some cleanup, but it might be a good starting point to look what others seem to be missing.
113 %b Answered 27 days ago by
115 = link_to "Permalink"
124 %p There you can find what people seem to be missing and are looking package maintainers for. The list might look daunting, and there might be things in there not maintained anymore, it definitely needs some cleanup, but it might be a good starting point to look what others seem to be missing.
127 %b Answered 27 days ago by
129 = link_to "Permalink"
138 %p You might want to take a look at the Work Needing and Prospective Packages page, especially with respect to the Requested Packages page. There you can find what people seem to be missing and are looking package maintainers for.
141 = link_to "Contestar"
151 %b Answered 27 days ago by
153 = link_to "Permalink"
164 %p You might want to take a look at the Work Needing and Prospective Packages page, especially with respect to the Requested Packages page. There you can find what people seem to be missing and are looking package maintainers for. The list might look daunting, and there might be things in there not maintained anymore, it definitely needs some cleanup, but it might be a good starting point to look what others seem to be missing.
169 %b Answered 27 days ago by
171 = link_to "Permalink"
182 %p You might want to take a look at the Work Needing and Prospective Packages page, especially with respect to the Requested Packages page. There you can find what people seem to be missing and are looking package maintainers for. The list might look daunting, and there might be things in there not maintained anymore, it definitely needs some cleanup, but it might be a good starting point to look what others seem to be missing.
186 = image_tag "answer-winner.gif"
188 %b Answered 27 days ago by
190 = link_to "Permalink"
201 %p You might want to take a look at the Work Needing and Prospective Packages page, especially with respect to the Requested Packages page. There you can find what people seem to be missing and are looking package maintainers for. The list might look daunting, and there might be things in there not maintained anymore, it definitely needs some cleanup, but it might be a good starting point to look what others seem to be missing.
208 = link_to "Follow Up", new_question_path(:from_question => @question.id), :rel => "nofollow"
209 #question-body-col.commentable.markdown
210 %a{:name => @question.id}
212 -if @question.follow_up
213 This Question Is a Follow Up Of
214 = link_to @question.follow_up.original_question.title, question_path(@question.follow_up.original_question)+"##{@question.follow_up.original_answer_id}"
216 -if @question.followed_up_by.limit(1).count > 0
218 -@question.followed_up_by.all.each do |child|
219 = link_to child.title, question_path(child)
220 - if @question.closed && @question.close_reason.present?
223 = t(@question.close_reason.reason, :scope=>"close_requests.form")
224 - if !@question.close_reason.comment.empty?
226 =find_and_preserve(shapado_auto_link(@question.close_reason.comment))
227 .post-text.entry-content
230 = render "reward_form"
237 - if !@flag.new_record?
239 = "#{t('.flagged_as')} #{t(@flag.reason, :scope=>'flags.form')}"
240 = link_to t("scaffold.edit"), edit_question_flag_path(@question,@flag), :class => "flag-link", :id => "edit_question_flag_link", :rel => 'nofollow'
241 = link_to t("scaffold.destroy"), question_flag_path(@question,@flag), :id => "destroy_question_flag_link", :rel => 'nofollow', :confirm => "are you sure?", :method => :delete
242 - elsif logged_in? && current_user != @question.user
243 = link_to t(".flag"), new_question_flag_path(@question), :class => "flag-link", :id => "question_flag_link", :rel => 'nofollow'
246 - if show_close_request_form
247 -if !@close_request.new_record?
249 = "#{t('.requested_close_as')} #{t(@close_request.reason, :scope=>'close_requests.form')}"
250 = link_to t(".edit_request"), edit_question_close_request_path(@question,@close_request), :class => "flag-link", :id => "edit_question_close_request_link", :rel => 'nofollow'
251 = link_to t(".retract_request"), question_close_request_path(@question,@close_request), :id => "destroy_question_close_request_link", :rel => 'nofollow', :confirm => "are you sure?", :method => :delete
252 = link_to t(".request_closing"), @close_request.new_record? ? new_question_close_request_path(@question) : edit_question_close_request_path(@question, @close_request), :id => "request-close-link", :rel => 'nofollow', :title => t('.request_closing_details')
254 - if show_open_request_form
255 -if !@open_request.new_record?
257 = "#{t('.requested_reopening')} #{@open_request.comment}"
258 = link_to t(".edit_request"), edit_question_open_request_path(@question, @open_request), :class => "flag-link", :id => "edit_question_open_request_link", :rel => 'nofollow'
259 = link_to t(".retract_request"), question_open_request_path(@question,@open_request), :id => "destroy_question_open_request_link", :rel => 'nofollow', :confirm => "are you sure?", :method => :delete
261 -if current_user.mod_of?(current_group)
262 = link_to t(".open"), open_question_path(@question), :rel => 'nofollow', :title => t('.request_opening_details'), :method => "put"
264 = link_to t(".request_opening"), new_question_open_request_path(@question), :id => "request-open-link", :rel => 'nofollow', :title => t('.request_opening_details')
266 - if (@question.wiki && current_user.can_edit_wiki_post_on?(@question.group)) || current_user.can_edit_others_posts_on?(@question.group) || current_user.can_modify?(@question)
267 = link_to t('scaffold.edit'), edit_question_path(@question), :class => "button"
268 - if @question.versions.count > 0
269 = link_to t(".history", :default => "history"), history_question_path(@question)
270 - if (current_user.can_modify?(@question) || current_user.owner_of?(@question.group))
271 = link_to t("scaffold.destroy"), question_path(@question.id), :confirm => "are you sure?", :method => :delete
272 - if current_user.mod_of?(@question.group)
273 -if !@question.closed
274 = link_to t('.close'), question_close_requests_path(@question)
275 = link_to @question.banned ? t(".unban") : t(".ban"), manage_moderate_questions_path(:question_ids => [@question.id], :commit => @question.banned ? "unban": "ban"), :class => "button", :method => :put, :confirm => "are you sure?"
277 -# render :partial => "flags/form", :locals => {:flag => @flag, :flaggeable => @question, :source => source, :form_id => "question_flag_form" }
279 -# if !@question.closed && show_close_request_form
280 -#= render :partial => "close_requests/form", :locals => { :question => @question, :close_request => @close_request, :hide => true, :form_id => "request_close_question_form"}
286 .secondary-navigation{:class => @active_subtab.to_s}
291 - if @question.accepted
292 -solution = @question.answer
293 =render :partial=> "answer", :locals=> {:question => @question, :answer => solution} unless solution.nil?
295 -@answers.each do |answer|
296 -next if answer.id == @question.answer_id
297 =render :partial=> "answer", :locals=> {:question => @question, :answer => answer}
298 =will_paginate(@answers)
300 -unless @question.closed
301 %a{:name=>"to_answer"}
302 -form_for @answer, :url => question_answers_path(@question.id), :html => {:class => "form mainAnswerForm"} do |f|
303 = render :partial => "answers/form", :locals => {:f => f, :markdown => true}
305 .controls.right{:style => "width: 50%"}
306 .left{:style => "width: 49.5%"}
307 = f.label :wiki, "Wiki", :class => "radio"
308 = f.check_box :wiki, :class => "checkbox"
309 .left{:style => "width: 49.5%"}
310 = f.label :anonymous, t("scaffold.post_as_anonymous"), :class => "radio"
311 = f.check_box :anonymous, {:class => "checkbox"}, true, false
312 = submit_tag t('answers.form.submit'), :class => "button"
315 -content_for :sidebar do
316 = render "shared/widgets", :context => 'question'