diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/plugin/_profile.html.erb b/vendor/built_in_modules/announcement/app/views/panel/announcement/plugin/_profile.html.erb index 54b2428e8..1be8e9b7e 100644 --- a/vendor/built_in_modules/announcement/app/views/panel/announcement/plugin/_profile.html.erb +++ b/vendor/built_in_modules/announcement/app/views/panel/announcement/plugin/_profile.html.erb @@ -1 +1,49 @@ -Hello~ I am your plugin profile \ No newline at end of file +<% + if @user + @bulletins = Bulletin.where(:create_user_id => @user.id).page(params[:page]).per(10) + else + @bulletins = Bulletin.all.page(params[:page]).per(10) + end + +%> + +
<%= t('bulletin.category') %> | +<%= t('bulletin.title') %> | +<%= t('bulletin.start_date') %> | +<%= t('bulletin.end_date') %> | +<%= t('bulletin.tags') %> | + <% if not @user%> +<%= t('bulletin.last_modified') %> | + <% end %> +|
---|---|---|---|---|---|---|
<%= bulletin.bulletin_category.title%> | ++ <%= bulletin.title%> + | +<%= display_date_time(bulletin.postdate) %> | + <% if not bulletin.deadline.nil?%> +<%= display_date_time(bulletin.deadline) %> | + <%else%> +<%= t('bulletin.no_deadline') %> | + <% end %> +
+
+ <% bulletin.sorted_tags.each do |tag| %>
+
+
+ <% end %>
+ |
+ <% if not @user%>
+ <%= User.find(bulletin.create_user_id).name %> | + <% end %> +