Actualizado plugin Redmine Questions 1.0.0 light
This commit is contained in:
parent
27e60f8ec1
commit
5d7889f1c9
140 changed files with 5342 additions and 1430 deletions
|
@ -0,0 +1,5 @@
|
|||
<div class="contextual">
|
||||
<%= link_to(l(:button_edit), edit_questions_answer_path(question_item), :class => 'icon icon-edit') if question_item.editable_by?(User.current) %>
|
||||
<%= link_to(l(:button_delete), questions_answer_path(question_item), :method => :delete, :data => {:confirm => l(:text_are_you_sure)}, :class => 'icon icon-del') if question_item.destroyable_by?(User.current)
|
||||
%>
|
||||
</div>
|
|
@ -0,0 +1,23 @@
|
|||
<div class="question answer<%= ' votable' if question_item.allow_voting? %> div-table" id="questions_answer_<%= question_item.id %>">
|
||||
<a href="#<%= question_item.id %>" class="wiki-anchor"></a>
|
||||
<% if question_item.allow_voting? && User.current.allowed_to?(:vote_questions, @project) %>
|
||||
<div class="vote" >
|
||||
<%= render :partial => 'questions_votes/question_item_vote', :locals => {:question_item => question_item } %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="question-container div-table-cell">
|
||||
<%= render :partial => "questions_answers/actions", :locals => { :question_item => question_item } %>
|
||||
<%= avatar(question_item.author, :size => "32") %>
|
||||
<p class="author">
|
||||
<%= link_to_user question_item.author %><br>
|
||||
<%= l(:label_questions_added_time, :value => time_tag(question_item.created_on)).html_safe %>
|
||||
</p>
|
||||
<div class="wiki">
|
||||
<%= textilizable(question_item, :content) %>
|
||||
</div>
|
||||
|
||||
<%= link_to_attachments question_item, :author => false %>
|
||||
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,10 @@
|
|||
<%= error_messages_for @answer %>
|
||||
<div class="box">
|
||||
<%= f.text_area :content, :cols => 80, :rows => 15, :class => 'wiki-edit', :id => 'answer_content', :no_label => true %>
|
||||
<%= wikitoolbar_for 'answer_content' %>
|
||||
|
||||
<p>
|
||||
<%= l(:label_attachment_plural) %><br />
|
||||
<%= render :partial => 'attachments/form', :locals => {:container => @answer} %>
|
||||
</p>
|
||||
</div>
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
<h2><%= avatar(@answer.author, :size => "24") %><%=h @answer.question.subject %></h2>
|
||||
|
||||
<%= form_for @answer, :as => :answer, :url => questions_answer_path(@answer), :html => {:multipart => true, :id => 'answer-form', :method => :put} do |f| %>
|
||||
<%= back_url_hidden_field_tag %>
|
||||
<%= render :partial => 'form', :locals => {:f => f} %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<%= preview_link(preview_questions_answers_path(@answer), 'answer-form') %>
|
||||
|
||||
<% end %>
|
||||
<div id="preview" class="wiki"></div>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue