This commit is contained in:
邱博亞 2024-04-18 20:23:56 +08:00
parent 7e544b3fa4
commit e9f409a0f9
4 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
class ActivesController < ApplicationController
FrontendMethods = ["show_privacy", "show_data"]
helper MemberHelper
def index

View File

@ -33,7 +33,7 @@
<div class="form-group">
<label for="title" class="col-sm-2 control-label"><%= t('act.title') %></label>
<div class="col-sm-10">
<%= @act.title %>
<%= @act.title.html_safe %>
</div>
</div>

View File

@ -8,7 +8,7 @@
@act_time_range = data["act_time_range"]
%>
<h1 class="active-show-title title"><%= @act.title %></h1>
<h1 class="active-show-title title"><%= @act.title.html_safe %></h1>
<table class="table table-striped active-show-table">
<tbody >
<tr class="active-show-category">

View File

@ -28,7 +28,7 @@
<% if act.expired? %>
<span class='label'><%= t(:expired) %></span>
<% end %>
<a href="<%= page_for_act(act) %>?method=show_data" target="_blank"><%= act.title %></a>
<a href="<%= page_for_act(act) %>?method=show_data" target="_blank"><%= act.title.html_safe %></a>
<div class="quick-edit">
<ul class="nav nav-pills">
<% if can_edit_or_delete?(act) %>