-<%
+<%
if @resource.scope=='PRJ'
conditions = "component_uuid=:component_uuid"
end
events=Event.find(:all, :conditions => [conditions, values], :order => 'event_date desc')
-
+
categories = EventCategory.categories(true)
%>
<th colspan="4"></th>
</tr>
</thead>
-
+
<tbody>
<%
events.each do |event|
<td x="<%= event.event_date -%>"><%= l(event.event_date.to_date) %></td>
<td><%= h message('event.category.' + categ, :default => categ) %></td>
<td>
- <%= link_to_if profile_data['key'] && profile_data['from'] && profile_data['to'], event.name,
+ <%= link_to_if profile_data['key'] && profile_data['from'] && profile_data['to'], h(event.name),
:controller => 'profiles', :action => 'changelog', :key => profile_data['key'],
:since => profile_data['from'], :to => profile_data['to'] -%>
</td>
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
+include ERB::Util
module DashboardHelper
include WidgetPropertiesHelper
include MetricsHelper
label = period_label(snapshot, index)
if label && snapshot.period_datetime(index)
selected=(params[:period]==index.to_s ? 'selected' : '')
- "<option value='#{index}' #{selected} class='#{html_class}'>Δ #{label}</option>"
+ "<option value='#{index}' #{selected} class='#{html_class}'>Δ #{h(label)}</option>"
else
nil
end