Permalink
Browse files

replace all tabs with spaces

  • Loading branch information...
mockdeep committed Jul 2, 2012
1 parent dc2dd0a commit 68975bc23b4f4a20b1c231f22545f34c6a9a109d
Showing with 17,665 additions and 17,658 deletions.
  1. +1 −1 app/controllers/boards_controller.rb
  2. +1 −1 app/controllers/members_controller.rb
  3. +4 −4 app/controllers/users_controller.rb
  4. +1 −1 app/controllers/wiki_controller.rb
  5. +1 −1 app/helpers/application_helper.rb
  6. +6 −6 app/helpers/journals_helper.rb
  7. +1 −1 app/helpers/wiki_helper.rb
  8. +1 −1 app/models/issue.rb
  9. +9 −9 app/models/setting.rb
  10. +31 −31 app/views/account/login.html.erb
  11. +13 −13 app/views/account/old_login_2.html.erb
  12. +2 −2 app/views/account/register.html.erb
  13. +1 −1 app/views/activity_streams/_activity_stream.html.erb
  14. +20 −20 app/views/activity_streams/_activity_stream_list.html.erb
  15. +17 −17 app/views/admin/_menu.html.erb
  16. +2 −2 app/views/admin/index.html.erb
  17. +4 −4 app/views/admin/info.html.erb
  18. +2 −2 app/views/admin/plugins.html.erb
  19. +8 −8 app/views/admin/projects.html.erb
  20. +6 −6 app/views/auth_sources/list.html.erb
  21. +1 −1 app/views/auth_sources/new.html.erb
  22. +1 −1 app/views/boards/index.html.erb
  23. +2 −2 app/views/boards/show.html.erb
  24. +1 −1 app/views/common/_calendar.html.erb
  25. +2 −2 app/views/common/_tabs.html.erb
  26. +8 −8 app/views/credit_transfers/_credit_transfer_history.html.erb
  27. +1 −1 app/views/credits/_credit_history.html.erb
  28. +1 −1 app/views/credits/_credit_queue.html.erb
  29. +1 −1 app/views/credits/_my_credits.html.erb
  30. +3 −3 app/views/enumerations/list.html.erb
  31. +6 −6 app/views/help_sections/_show_popup.html.erb
  32. +1 −1 app/views/home/about.html
  33. +18 −18 app/views/home/apps.html
  34. +3 −3 app/views/home/contact.html
  35. +88 −88 app/views/home/elements.html
  36. +18 −18 app/views/home/features_original.html
  37. +4 −4 app/views/home/how.html
  38. +1 −1 app/views/home/hq.html
  39. +6 −6 app/views/home/library.html
  40. +4 −4 app/views/home/old_index.html
  41. +25 −25 app/views/home/old_index2.html
  42. +2 −2 app/views/home/privacy.html
  43. +18 −18 app/views/home/services.html
  44. +3 −3 app/views/home/signup.html
  45. +2 −2 app/views/home/tour.html
  46. +10 −10 app/views/home/webdesign.html
  47. +27 −27 app/views/home/what.html
  48. +13 −13 app/views/invitations/index.html.erb
  49. +1 −1 app/views/invitations/new.html.erb
  50. +3 −3 app/views/issue_statuses/list.html.erb
  51. +1 −1 app/views/issues/_form.html.erb
  52. +16 −16 app/views/issues/_list.html.erb
  53. +22 −22 app/views/issues/_list_simple.html.erb
  54. +16 −16 app/views/issues/_list_very_simple.html.erb
  55. +2 −2 app/views/issues/_sidebar.html.erb
  56. +51 −51 app/views/issues/context_menu.html.erb
  57. +90 −90 app/views/issues/gantt.html.erb
  58. +25 −25 app/views/issues/index.html.erb
  59. +6 −6 app/views/issues/move.html.erb
  60. +2 −2 app/views/issues/new.html.erb
  61. +41 −41 app/views/issues/show.html.erb
  62. +4 −4 app/views/layouts/admin.html.erb
  63. +2 −2 app/views/layouts/base.html.erb
  64. +8 −8 app/views/layouts/blank.html.erb
  65. +76 −76 app/views/layouts/gooey.html.erb
  66. +2 −2 app/views/layouts/issue_blank.html.erb
  67. +16 −16 app/views/layouts/static.html.erb
  68. +1 −1 app/views/mailer/wiki_content_added.text.html.html.erb
  69. +1 −1 app/views/mailer/wiki_content_added.text.plain.html.erb
  70. +1 −1 app/views/mailer/wiki_content_updated.text.html.html.erb
  71. +1 −1 app/views/mailer/wiki_content_updated.text.plain.html.erb
  72. +33 −33 app/views/mails/_inbox.html.erb
  73. +27 −27 app/views/mails/_sent.html.erb
  74. +5 −5 app/views/mails/index.html.erb
  75. +3 −3 app/views/mails/new.html.erb
  76. +1 −1 app/views/mails/show.html.erb
  77. +1 −1 app/views/messages/_form.html.erb
  78. +18 −18 app/views/messages/show.html.erb
  79. +4 −4 app/views/motions/_motions.html.erb
  80. +8 −8 app/views/my/_belong_to_projects.html.erb
  81. +2 −2 app/views/my/_block.html.erb
  82. +4 −4 app/views/my/_project_list.html.erb
  83. +5 −5 app/views/my/blocks/_issuesreportedbyme.html.erb
  84. +18 −18 app/views/my/page.html.erb
  85. +15 −15 app/views/my/page_layout.html.erb
  86. +10 −10 app/views/news/_news.html.erb
  87. +12 −12 app/views/news/index.html.erb
  88. +14 −14 app/views/news/show.html.erb
  89. +10 −10 app/views/notifications/_credits_distributed.erb
  90. +10 −10 app/views/notifications/_credits_transferred.html.erb
  91. +10 −10 app/views/notifications/_invitation.erb
  92. +10 −10 app/views/notifications/_issue_joined.html.erb
  93. +10 −10 app/views/notifications/_issue_left.html.erb
  94. +10 −10 app/views/notifications/_issue_team_member_added.html.erb
  95. +10 −10 app/views/notifications/_issue_team_member_removed.html.erb
  96. +10 −10 app/views/notifications/_mention.html.erb
  97. +10 −10 app/views/notifications/_motion_started.erb
  98. +10 −10 app/views/notifications/_new_role.erb
  99. +10 −10 app/views/notifications/_retro_ended.erb
  100. +10 −10 app/views/notifications/_retro_started.erb
  101. +10 −10 app/views/notifications/_trial_expired.html.erb
  102. +10 −10 app/views/notifications/_usage_over.html.erb
  103. +26 −26 app/views/projects/_active_member_box.html.erb
  104. +23 −23 app/views/projects/_active_member_box_simple.html.erb
  105. +15 −15 app/views/projects/_clearance_member_box.html.erb
  106. +16 −16 app/views/projects/_member_box.html.erb
  107. +14 −14 app/views/projects/_project_list.html.erb
  108. +9 −9 app/views/projects/_subprojects.html.erb
  109. +29 −29 app/views/projects/_team_list.html.erb
  110. +3 −3 app/views/projects/index.html.erb
  111. +1 −1 app/views/projects/list_files.html.erb
  112. +1 −1 app/views/projects/move.html.erb
  113. +5 −5 app/views/projects/overview.html.erb
  114. +15 −15 app/views/projects/settings/_boards.html.erb
  115. +2 −2 app/views/projects/settings/_hourly_types.html.erb
  116. +19 −19 app/views/projects/settings/_members.html.erb
  117. +8 −8 app/views/projects/settings/_select_new_member.html.erb
  118. +5 −5 app/views/projects/team.html.erb
  119. +20 −20 app/views/queries/_columns.html.erb
  120. +3 −3 app/views/queries/_filters.html.erb
  121. +3 −3 app/views/queries/_form.html.erb
  122. +4 −4 app/views/roles/list.html.erb
  123. +4 −4 app/views/roles/report.html.erb
  124. +3 −3 app/views/settings/_authentication.html.erb
  125. +3 −3 app/views/settings/_mail_handler.html.erb
  126. +2 −2 app/views/settings/_notifications.html.erb
  127. +2 −2 app/views/settings/_projects.html.erb
  128. +3 −3 app/views/trackers/list.html.erb
  129. +2 −2 app/views/users/_activity.html.erb
  130. +5 −5 app/views/users/_general.html.erb
  131. +6 −6 app/views/users/_general_info.html.erb
  132. +1 −1 app/views/users/_membership.html.erb
  133. +17 −17 app/views/users/_memberships.html.erb
  134. +3 −3 app/views/users/_reputation.html.erb
  135. +6 −6 app/views/users/add.html.erb
  136. +14 −14 app/views/users/index.html.erb
  137. +37 −37 app/views/welcome/_list_workstreams.html.erb
  138. +3 −3 app/views/welcome/index.html.erb
  139. +1 −1 app/views/wiki/destroy.html.erb
  140. +5 −5 app/views/wiki/show.html.erb
  141. +2 −2 app/views/wiki/special_date_index.html.erb
  142. +2 −2 app/views/wiki/special_page_index.html.erb
  143. +20 −20 app/views/workflows/copy.html.erb
  144. +24 −24 app/views/workflows/edit.html.erb
  145. +1 −1 lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
  146. +20 −20 lib/redmine/helpers/gantt.rb
  147. +11 −11 lib/redmine/version.rb
  148. +7 −0 lib/tasks/cleanup.rake
  149. +50 −50 lib/tasks/migrate_from_mantis.rake
  150. +1,261 −1,261 public/javascripts/application.js
  151. +131 −131 public/javascripts/calendar/calendar-setup.js
  152. +1,489 −1,489 public/javascripts/calendar/calendar.js
  153. +5 −5 public/javascripts/calendar/lang/calendar-cs.js
  154. +4 −4 public/javascripts/calendar/lang/calendar-sk.js
  155. +86 −86 public/javascripts/context_menu.js
  156. +3,108 −3,108 public/javascripts/dashboard.js
  157. +51 −51 public/javascripts/enterprise_map.js
  158. +192 −192 public/javascripts/fancybox/jquery.fancybox-1.3.0.css
  159. +71 −71 public/javascripts/hoverIntent.js
  160. +301 −301 public/javascripts/jQuery.bubbletip-1.0.4.js
  161. +176 −176 public/javascripts/jit.js
  162. +49 −49 public/javascripts/jquery-ui.js
  163. +751 −751 public/javascripts/jquery.autocomplete.js
  164. +751 −751 public/javascripts/jquery.fancybox-1.3.0.js
  165. +967 −967 public/javascripts/jquery.fancybox-1.3.4.js
  166. +61 −61 public/javascripts/jquery.mousewheel.js
  167. +230 −230 public/javascripts/jquery.tagsinput.js
  168. +191 −191 public/javascripts/jquery.ui.position.js
  169. +315 −315 public/javascripts/jstoolbar/jstoolbar.js
  170. +110 −110 public/javascripts/jstoolbar/textile.js
  171. +146 −146 public/javascripts/lightbox.js
  172. +107 −107 public/javascripts/retro.js
  173. +11 −11 public/javascripts/select_list_move.js
  174. +7 −7 public/javascripts/static/execute.js
  175. +71 −71 public/javascripts/static/hoverIntent.js
  176. +535 −535 public/javascripts/static/jquery-galleryview-1.1/jquery.galleryview-1.1.js
  177. +126 −126 public/javascripts/static/jquery-galleryview-1.1/jquery.timers-1.1.2.js
  178. +129 −129 public/javascripts/static/jquery.easing.1.3.js
  179. +27 −27 public/javascripts/static/jquery.send.js
  180. +102 −102 public/javascripts/static/superfish.js
  181. +56 −56 public/javascripts/store.js
  182. +102 −102 public/javascripts/superfish.js
  183. +71 −71 public/javascripts/supersubs.js
  184. +17 −17 public/javascripts/textile-editor-config.js
  185. +17 −17 public/stylesheets/bubbletip-IE.css
  186. +47 −47 public/stylesheets/bubbletip.css
  187. +21 −21 public/stylesheets/context_menu.css
  188. +2 −2 public/stylesheets/custom.css
  189. +183 −183 public/stylesheets/dashboard.css
  190. +6 −6 public/stylesheets/gt-fixed.css
  191. +3 −3 public/stylesheets/gt-rounded-corners.css
  192. +1,125 −1,125 public/stylesheets/gt-styles.css
  193. +157 −157 public/stylesheets/headerandfooter.css
  194. +23 −23 public/stylesheets/issue.css
  195. +42 −42 public/stylesheets/jScrollPane.css
  196. +19 −19 public/stylesheets/jquery-ui-1.8.8.custom.css
  197. +31 −31 public/stylesheets/jquery.autocomplete.css
  198. +192 −192 public/stylesheets/jquery.fancybox-1.3.0.css
  199. +188 −188 public/stylesheets/jquery.fancybox-1.3.4.css
  200. +6 −6 public/stylesheets/jquery.fileupload-ui.css
  201. +42 −42 public/stylesheets/jquery.tagsinput.css
  202. +37 −37 public/stylesheets/jstoolbar.css
  203. +30 −30 public/stylesheets/lightbox.css
  204. +210 −210 public/stylesheets/oldapplication.css
  205. +6 −6 public/stylesheets/reset-fonts.css
  206. +8 −8 public/stylesheets/scm.css
  207. +417 −417 public/stylesheets/static/screen.css
  208. +892 −892 public/stylesheets/static/style.css
  209. +47 −47 public/stylesheets/static/superfish.css
  210. +21 −21 public/stylesheets/textile-editor.css
  211. +502 −502 public/themes/bettermeans/stylesheets/application.css
@@ -26,7 +26,7 @@ def show
respond_to do |format|
format.html {
sort_init 'updated_at', 'desc'
- sort_update 'created_at' => "#{Message.table_name}.created_at",
+ sort_update 'created_at' => "#{Message.table_name}.created_at",
'replies' => "#{Message.table_name}.replies_count",
'updated_at' => "#{Message.table_name}.updated_at"
@@ -33,7 +33,7 @@ def new
def edit
if request.post? and @member.update_attributes(params[:member])
- respond_to do |format|
+ respond_to do |format|
format.html { redirect_to :controller => 'projects', :action => 'settings', :tab => 'members', :id => @project }
format.js {
render(:update) {|page|
@@ -24,12 +24,12 @@ def index
@user_count = User.count(:conditions => c.conditions)
@user_pages = Paginator.new self, @user_count,
- per_page_option,
- params['page']
+ per_page_option,
+ params['page']
@users = User.find :all,:order => sort_clause,
:conditions => c.conditions,
- :limit => @user_pages.items_per_page,
- :offset => @user_pages.current.offset
+ :limit => @user_pages.items_per_page,
+ :offset => @user_pages.current.offset
render :layout => !request.xhr?
end
@@ -45,7 +45,7 @@ def index
send_data(@content.text, :type => 'text/plain', :filename => "#{@page.title}.txt")
return
end
- @editable = editable?
+ @editable = editable?
render :action => 'show'
end
@@ -1360,7 +1360,7 @@ def avatar_from_id(user_id, options = { })
end
def button(text, cssclass)
- return "<div class='action_button_no_float action_button_#{cssclass}' onclick=\"$('.action_button_no_float').hide();\" ><span>#{text}</span></div>"
+ return "<div class='action_button_no_float action_button_#{cssclass}' onclick=\"$('.action_button_no_float').hide();\" ><span>#{text}</span></div>"
end
def tally_table(motion)
@@ -45,14 +45,14 @@ def render_votes(journal, options={})
User.current.voted_on?(journal)
votingcontent << link_to_remote(image_tag('/images/aupgray.gif', :size => "15x14", :border => 0),
{
- :url => user_journal_votes_path(User.current, journal, :vote => :true, :format => :js, :voteable_type => "journal"),
- :method => :post
- })
+ :url => user_journal_votes_path(User.current, journal, :vote => :true, :format => :js, :voteable_type => "journal"),
+ :method => :post
+ })
votingcontent << link_to_remote(image_tag('/images/adowngray.gif', :size => "15x14", :border => 0),
{
- :url => user_journal_votes_path(User.current, journal, :vote => :false, :format => :js, :voteable_type => "journal"),
- :method => :post
- })
+ :url => user_journal_votes_path(User.current, journal, :vote => :false, :format => :js, :voteable_type => "journal"),
+ :method => :post
+ })
end
content_tag('span', votingcontent, :id => "votes_" + String(journal.id), :class => 'journalvote')
@@ -36,7 +36,7 @@ def html_diff(wdiff)
else
del_at = pos unless del_at
deleted << ' ' + h(change[2])
- words_del += 1
+ words_del += 1
end
end
if add_at
View
@@ -612,7 +612,7 @@ def dollar_amount
def points_from_credits
normalized = (points/self.project.dpp).round
return Setting::CREDITS_TO_POINTS[Setting::CREDITS_TO_POINTS.length - 1] if normalized > Setting::CREDITS_TO_POINTS.length #returns max if credits are more than max
- return Setting::CREDITS_TO_POINTS[normalized];
+ return Setting::CREDITS_TO_POINTS[normalized];
end
def size
View
@@ -123,15 +123,15 @@ class Setting < ActiveRecord::Base
LENGTH_OF_MOVING_AVERAGE = 20
DATE_FORMATS = [
- '%Y-%m-%d',
- '%d/%m/%Y',
- '%d.%m.%Y',
- '%d-%m-%Y',
- '%m/%d/%Y',
- '%d %b %Y',
- '%d %B %Y',
- '%b %d, %Y',
- '%B %d, %Y'
+ '%Y-%m-%d',
+ '%d/%m/%Y',
+ '%d.%m.%Y',
+ '%d-%m-%Y',
+ '%m/%d/%Y',
+ '%d %b %Y',
+ '%d %B %Y',
+ '%b %d, %Y',
+ '%B %d, %Y'
]
TIME_FORMATS = [
@@ -22,61 +22,61 @@
</div>
<![endif]-->
- <!-- login form head -->
- <div class="gt-login-hd">
- &nbsp;&nbsp;&nbsp;&nbsp;You're here, that makes us happy
- </div>
+ <!-- login form head -->
+ <div class="gt-login-hd">
+ &nbsp;&nbsp;&nbsp;&nbsp;You're here, that makes us happy
+ </div>
- <!-- login box -->
- <div class="gt-login-box">
+ <!-- login box -->
+ <div class="gt-login-box">
<%=RPXNow.embed_code('bettermeans', url_for(:controller=>:accounts, :action=>:rpx_token, :only_path => false, :protocol => login_protocol()))%>
<br><br><br>
<div class="signup-header">or login using your account</div>
- <!-- login form -->
+ <!-- login form -->
- <p class="space">
- <% if Setting.autologin? %>
+ <p class="space">
+ <% if Setting.autologin? %>
<span><label for="autologin"></label>
</span>
<% end %>
<%# if Setting.lost_password? %>
<%# end %>
- </p>
+ </p>
- <% form_tag({:action=> "login"}, :class => "gt-form") do %>
+ <% form_tag({:action=> "login"}, :class => "gt-form") do %>
<%= back_url_hidden_field_tag %>
<%= hidden_field_tag 'invitation_token', @invitation_token %>
- <!-- form row -->
- <div class="gt-form-row">
- <label for="username" class="gt-login-label"><%=l(:field_login)%></label>
+ <!-- form row -->
+ <div class="gt-form-row">
+ <label for="username" class="gt-login-label"><%=l(:field_login)%></label>
<%= text_field_tag 'username', nil, :tabindex => '1', :class => "gt-form-text" %>
- </div><!-- /form row -->
+ </div><!-- /form row -->
- <!-- form row -->
- <div class="gt-form-row">
- <label for="password" class="gt-login-label"><%=l(:field_password)%></label>
- <%= password_field_tag 'password', nil, :tabindex => '2', :class => "gt-form-text" %>
- </div><!-- /form row -->
+ <!-- form row -->
+ <div class="gt-form-row">
+ <label for="password" class="gt-login-label"><%=l(:field_password)%></label>
+ <%= password_field_tag 'password', nil, :tabindex => '2', :class => "gt-form-text" %>
+ </div><!-- /form row -->
- <!-- form row -->
- <div class="gt-form-row">
+ <!-- form row -->
+ <div class="gt-form-row">
- <label class="gt-remember-me"><%= check_box_tag 'autologin', 1, false, :tabindex => 4, :class => "gt-form-checkbox" %> <%= l(:label_stay_logged_in, {:class => "gt-remember-me"}) %></label>
+ <label class="gt-remember-me"><%= check_box_tag 'autologin', 1, false, :tabindex => 4, :class => "gt-form-checkbox" %> <%= l(:label_stay_logged_in, {:class => "gt-remember-me"}) %></label>
<input type="submit" name="login" class="gt-btn-gray-medium gt-btn-right" style="float:right" value="<%=l(:button_login)%> &#187;" tabindex="5"/>
- </div>
- <!-- /form row -->
+ </div>
+ <!-- /form row -->
- <p class="gt-forgot-password"><%= link_to l(:label_register), { :controller => 'account', :action => 'register' } %>
- <span class="lost">&nbsp;|&nbsp; </span>
- <%= link_to l(:label_password_lost), {:controller => 'account', :action => 'lost_password'} %>
- </p>
+ <p class="gt-forgot-password"><%= link_to l(:label_register), { :controller => 'account', :action => 'register' } %>
+ <span class="lost">&nbsp;|&nbsp; </span>
+ <%= link_to l(:label_password_lost), {:controller => 'account', :action => 'lost_password'} %>
+ </p>
- <% end %><!-- /login form -->
- </div><!-- /login box -->
+ <% end %><!-- /login form -->
+ </div><!-- /login box -->
<%= javascript_tag "$('#username').focus();" %>
</div></div></div>
@@ -128,12 +128,12 @@
<![endif]-->
<div id="container">
- <div class="logo">
- <a href="<%= home_url %>"><img src="/images/logo.png" alt=""></a>
- </div>
- <div id="box">
- <% form_tag({:action=> "login"}) do %>
- <p class="main">
+ <div class="logo">
+ <a href="<%= home_url %>"><img src="/images/logo.png" alt=""></a>
+ </div>
+ <div id="box">
+ <% form_tag({:action=> "login"}) do %>
+ <p class="main">
<%= back_url_hidden_field_tag %>
<label for="username"><%=l(:field_login)%>:</label>
<%= text_field_tag 'username', nil, :tabindex => '1' %>
@@ -154,23 +154,23 @@
<input name="password" value="asdf1234" type="password">
</p> -->
- <p class="space">
- <% if Setting.autologin? %>
+ <p class="space">
+ <% if Setting.autologin? %>
<span><label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label>
<input type="submit" name="login" class="login" value="<%=l(:button_login)%> &#187;" tabindex="5"/>
</span>
<% end %>
<%# if Setting.lost_password? %>
<%# end %>
- </p>
+ </p>
- <%= link_to l(:label_register), { :controller => 'account', :action => 'register' }, :class => "lost" %>
- <span class="lost">&nbsp;|&nbsp; </span>
- <%= link_to l(:label_password_lost), {:controller => 'account', :action => 'lost_password'}, :class => "lost" %>
+ <%= link_to l(:label_register), { :controller => 'account', :action => 'register' }, :class => "lost" %>
+ <span class="lost">&nbsp;|&nbsp; </span>
+ <%= link_to l(:label_password_lost), {:controller => 'account', :action => 'lost_password'}, :class => "lost" %>
<% end %>
- </div>
+ </div>
</div>
<%= javascript_tag "$('#username').focus();" %>
@@ -38,8 +38,8 @@
<!--[eoform:user]-->
<div class="gt-form-row">
- <%= submit_tag l(:button_signup), :class => "gt-btn-gray-medium gt-btn-right right", :style => "float:right;", :disable_with => l(:button_working) %>
- <p>&nbsp;</p>
+ <%= submit_tag l(:button_signup), :class => "gt-btn-gray-medium gt-btn-right right", :style => "float:right;", :disable_with => l(:button_working) %>
+ <p>&nbsp;</p>
<!-- <p><label for="user_language"><%#=l(:field_language)%></label>
<%#= select("user", "language", lang_options_for_select) %></p> -->
</div>
@@ -34,7 +34,7 @@
<div class="activity-tag">
&nbsp;&nbsp;<%= since_tag(as.created_at) %> ago in
<%# if @project.nil? || @project.id != as.project_id %>
- <%= link_to h(as.project_name), :controller => 'projects', :action => 'show', :id => as.project_id %>
+ <%= link_to h(as.project_name), :controller => 'projects', :action => 'show', :id => as.project_id %>
<%# end %>
<%= link_to " - #{as.tracker_name} ##{as.object_id}", url_for_activity_stream(as), {:class => class_for_activity_stream(as)} if as.tracker_name%>
@@ -62,23 +62,23 @@ function post_comment(object_id, comment_type){
$("#add_comment_trigger_" + object_id).show();
// try{
- var text = $("#input_comment_textarea_" + object_id).val();
+ var text = $("#input_comment_textarea_" + object_id).val();
- if ((text == null) || (text.length < 2)){
- return false;
- }
- else
- {
+ if ((text == null) || (text.length < 2)){
+ return false;
+ }
+ else
+ {
$("#comments_table_" + object_id).append(generate_comment(object_id,text));
$("#input_comment_textarea_" + object_id).val('');
if (comment_type=="issue")
{
var data = "commit=Create&issue_id=" + object_id + "&comment=" + text;
- var url = url_for({ controller: 'comments',
- action : 'create'
- });
+ var url = url_for({ controller: 'comments',
+ action : 'create'
+ });
}
else if (comment_type=="message")
{
@@ -87,21 +87,21 @@ function post_comment(object_id, comment_type){
}
- $.ajax({
- type: "POST",
- dataType: "json",
- url: url,
- data: data,
- success: function(html){
- },
+ $.ajax({
+ type: "POST",
+ dataType: "json",
+ url: url,
+ data: data,
+ success: function(html){
+ },
// error: function (XMLHttpRequest, textStatus, errorThrown) {
// handle_error(XMLHttpRequest, textStatus, errorThrown, dataId, "post");
// },
- timeout: 30000 //30 seconds
- });
+ timeout: 30000 //30 seconds
+ });
- return false;
- }
+ return false;
+ }
// }
// catch(err){
// console.log(err);
@@ -1,19 +1,19 @@
<div id="admin-menu">
- <ul>
- <li><%= link_to l(:label_project_plural), {:controller => 'admin', :action => 'projects'}, :class => 'projects' %></li>
- <li><%= link_to l(:label_user_plural), {:controller => 'users'}, :class => 'users' %></li>
- <li><%= link_to l(:label_role_and_permissions), {:controller => 'roles'}, :class => 'roles' %></li>
- <li><%= link_to l(:label_tracker_plural), {:controller => 'trackers'}, :class => 'trackers' %></li>
- <li><%= link_to l(:label_issue_status_plural), {:controller => 'issue_statuses'}, :class => 'issue_statuses' %></li>
- <li><%= link_to l(:label_workflow), {:controller => 'workflows', :action => 'edit'}, :class => 'workflows' %></li>
- <li><%= link_to l(:label_enumerations), {:controller => 'enumerations'}, :class => 'enumerations' %></li>
- <li><%= link_to l(:label_settings), {:controller => 'settings'}, :class => 'settings' %></li>
- <% menu_items_for(:admin_menu) do |item| -%>
- <li><%= link_to h(item.caption), item.url, item.html_options %></li>
- <% end -%>
- <li><%= link_to l(:label_plugins), {:controller => 'admin', :action => 'plugins'}, :class => 'plugins' %></li>
- <li><%= link_to l(:label_information_plural), {:controller => 'admin', :action => 'info'}, :class => 'info' %></li>
- <li><%= link_to :Stats, {:controller => 'admin', :action => 'user_stats'}, :class => 'info' %></li>
- <li><%= link_to :User_Data_Dump, {:controller => 'admin', :action => 'user_data_dump', :format => :csv}, :class => 'settings' %></li>
- </ul>
+ <ul>
+ <li><%= link_to l(:label_project_plural), {:controller => 'admin', :action => 'projects'}, :class => 'projects' %></li>
+ <li><%= link_to l(:label_user_plural), {:controller => 'users'}, :class => 'users' %></li>
+ <li><%= link_to l(:label_role_and_permissions), {:controller => 'roles'}, :class => 'roles' %></li>
+ <li><%= link_to l(:label_tracker_plural), {:controller => 'trackers'}, :class => 'trackers' %></li>
+ <li><%= link_to l(:label_issue_status_plural), {:controller => 'issue_statuses'}, :class => 'issue_statuses' %></li>
+ <li><%= link_to l(:label_workflow), {:controller => 'workflows', :action => 'edit'}, :class => 'workflows' %></li>
+ <li><%= link_to l(:label_enumerations), {:controller => 'enumerations'}, :class => 'enumerations' %></li>
+ <li><%= link_to l(:label_settings), {:controller => 'settings'}, :class => 'settings' %></li>
+ <% menu_items_for(:admin_menu) do |item| -%>
+ <li><%= link_to h(item.caption), item.url, item.html_options %></li>
+ <% end -%>
+ <li><%= link_to l(:label_plugins), {:controller => 'admin', :action => 'plugins'}, :class => 'plugins' %></li>
+ <li><%= link_to l(:label_information_plural), {:controller => 'admin', :action => 'info'}, :class => 'info' %></li>
+ <li><%= link_to :Stats, {:controller => 'admin', :action => 'user_stats'}, :class => 'info' %></li>
+ <li><%= link_to :User_Data_Dump, {:controller => 'admin', :action => 'user_data_dump', :format => :csv}, :class => 'settings' %></li>
+ </ul>
</div>
@@ -1,8 +1,8 @@
<h2><%=l(:label_administration)%></h2>
<div id="admin-index">
- <%= render :partial => 'no_data' if @no_configuration_data %>
- <%= render :partial => 'menu' %>
+ <%= render :partial => 'no_data' if @no_configuration_data %>
+ <%= render :partial => 'menu' %>
</div>
<% html_title(l(:label_administration)) -%>
Oops, something went wrong.

0 comments on commit 68975bc

Please sign in to comment.