Revision 915:2a68662d5adf vendor/plugins/redmine_bibliography/app

View differences:

vendor/plugins/redmine_bibliography/app/views/mailer/publication_added.html.erb
1
<%= l(:mail_body_publication_added, :publication => @publication.title, :project => @project.name) %>
vendor/plugins/redmine_bibliography/app/views/mailer/publication_added.text.erb
1
<%= l(:mail_body_publication_added, :publication => @publication.title, :project => @project.name) %>
2

  
vendor/plugins/redmine_bibliography/app/views/mailer/publication_added.text.html.rhtml
1
<%= l(:mail_body_publication_added, :publication => @publication.title, :project => @project.name) %>
vendor/plugins/redmine_bibliography/app/views/mailer/publication_added.text.plain.rhtml
1
<%= l(:mail_body_publication_added, :publication => @publication.title, :project => @project.name) %>
2

  
vendor/plugins/redmine_bibliography/app/views/projects/show.erb
1
<div class="contextual">
2
	<% if User.current.allowed_to?(:add_subprojects, @project) %>
3
		<%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
4
	<% end %>
5
	
6
	<% if @project.module_enabled? :redmine_bibliography %>
7
	  <% if User.current.allowed_to?(:add_publication, @project) %>	
8
		  <%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>		
9
	  <% end %>
10
	<% end %>
11
</div>
12

  
13
<% if @project.has_welcome_page %>
14
<% page = @project.wiki.find_page("Overview") %>
15
<% end %>
16

  
17
<% if page %>
18

  
19
<% if @project.module_enabled? :wiki %>
20
<% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
21
<div class="contextual">
22
<%= link_to(l(:button_welcome_page_edit_this), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %>
23
</div>
24
<% end %>
25
<% end %>
26

  
27
<div class="contextual" style="clear: right">
28
<ul>
29
<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %>
30
<% if @subprojects.any? %>
31
	<li><%=l(:label_subproject_plural)%>:
32
	    <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li>
33
<% end %>
34
</ul>
35
</div>
36

  
37
<%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %>
38

  
39
<% else %>
40

  
41
<h2><%=l(:label_overview)%></h2> 
42
	
43
<div class="splitcontentleft">
44
	<div class="wiki">
45
		<%= textilizable @project.description %>
46
	</div>	
47
	<ul>
48
	<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %>
49
  <% if @subprojects.any? %>
50
 	<li><%=l(:label_subproject_plural)%>:
51
	    <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li>
52
  <% end %>
53
	<% @project.visible_custom_field_values.each do |custom_value| %>
54
	<% if !custom_value.value.blank? %>
55
	   <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
56
	<% end %>
57
	<% end %>
58
	</ul>	
59

  
60
  <% if User.current.allowed_to?(:view_issues, @project) %>
61
  <div class="issues box">    
62
    <h3><%=l(:label_issue_tracking)%></h3>
63
    <ul>
64
    <% for tracker in @trackers %>    
65
      <li><%= link_to tracker.name, :controller => 'issues', :action => 'index', :project_id => @project, 
66
                                                :set_filter => 1, 
67
                                                "tracker_id" => tracker.id %>:
68
					<%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
69
																										:total => @total_issues_by_tracker[tracker].to_i) %>
70
			</li>
71
    <% end %>
72
    </ul>
73
    <p>
74
    	<%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
75
	    <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
76
				| <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
77
			<% end %>
78
			<% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
79
				| <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
80
			<% end %>
81
		</p>
82
  </div>
83
  <% end %>
84
  <%= call_hook(:view_projects_show_left, :project => @project) %>
85
</div>
86

  
87
<div class="splitcontentright">
88
  
89
  <%= render :partial => 'bibliography_box' %>
90
  
91
  <%= render :partial => 'members_box' %>
92
    
93
  <% if @news.any? && authorize_for('news', 'index') %>
94
  <div class="news box">
95
    <h3><%=l(:label_news_latest)%></h3>  
96
    <%= render :partial => 'news/news', :collection => @news %>
97
    <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p>
98
  </div>  
99
  <% end %>
100
  <%= call_hook(:view_projects_show_right, :project => @project) %>
101
</div>
102

  
103
<% content_for :sidebar do %>
104
    <%= call_hook(:view_projects_show_sidebar_top, :project => @project) %>
105
    <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
106
    <h3><%= l(:label_spent_time) %></h3>
107
    <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
108
    <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> |
109
    <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %></p>
110
    <% end %>
111
    <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
112
<% end %>
113

  
114
<% end %>
115

  
116
<% content_for :header_tags do %>
117
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
118
<% end %>
119

  
120
<% html_title(l(:label_overview)) -%>
vendor/plugins/redmine_bibliography/app/views/projects/show.rhtml
1
<div class="contextual">
2
	<% if User.current.allowed_to?(:add_subprojects, @project) %>
3
		<%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
4
	<% end %>
5
	
6
	<% if @project.module_enabled? :redmine_bibliography %>
7
	  <% if User.current.allowed_to?(:add_publication, @project) %>	
8
		  <%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>		
9
	  <% end %>
10
	<% end %>
11
</div>
12

  
13
<% if @project.has_welcome_page %>
14
<% page = @project.wiki.find_page("Overview") %>
15
<% end %>
16

  
17
<% if page %>
18

  
19
<% if @project.module_enabled? :wiki %>
20
<% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
21
<div class="contextual">
22
<%= link_to(l(:button_welcome_page_edit_this), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %>
23
</div>
24
<% end %>
25
<% end %>
26

  
27
<div class="contextual" style="clear: right">
28
<ul>
29
<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %>
30
<% if @subprojects.any? %>
31
	<li><%=l(:label_subproject_plural)%>:
32
	    <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li>
33
<% end %>
34
</ul>
35
</div>
36

  
37
<%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %>
38

  
39
<% else %>
40

  
41
<h2><%=l(:label_overview)%></h2> 
42
	
43
<div class="splitcontentleft">
44
	<div class="wiki">
45
		<%= textilizable @project.description %>
46
	</div>	
47
	<ul>
48
	<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %>
49
  <% if @subprojects.any? %>
50
 	<li><%=l(:label_subproject_plural)%>:
51
	    <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li>
52
  <% end %>
53
	<% @project.visible_custom_field_values.each do |custom_value| %>
54
	<% if !custom_value.value.blank? %>
55
	   <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
56
	<% end %>
57
	<% end %>
58
	</ul>	
59

  
60
  <% if User.current.allowed_to?(:view_issues, @project) %>
61
  <div class="issues box">    
62
    <h3><%=l(:label_issue_tracking)%></h3>
63
    <ul>
64
    <% for tracker in @trackers %>    
65
      <li><%= link_to tracker.name, :controller => 'issues', :action => 'index', :project_id => @project, 
66
                                                :set_filter => 1, 
67
                                                "tracker_id" => tracker.id %>:
68
					<%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
69
																										:total => @total_issues_by_tracker[tracker].to_i) %>
70
			</li>
71
    <% end %>
72
    </ul>
73
    <p>
74
    	<%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
75
	    <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
76
				| <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
77
			<% end %>
78
			<% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
79
				| <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
80
			<% end %>
81
		</p>
82
  </div>
83
  <% end %>
84
  <%= call_hook(:view_projects_show_left, :project => @project) %>
85
</div>
86

  
87
<div class="splitcontentright">
88
  
89
  <%= render :partial => 'bibliography_box' %>
90
  
91
  <%= render :partial => 'members_box' %>
92
    
93
  <% if @news.any? && authorize_for('news', 'index') %>
94
  <div class="news box">
95
    <h3><%=l(:label_news_latest)%></h3>  
96
    <%= render :partial => 'news/news', :collection => @news %>
97
    <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p>
98
  </div>  
99
  <% end %>
100
  <%= call_hook(:view_projects_show_right, :project => @project) %>
101
</div>
102

  
103
<% content_for :sidebar do %>
104
    <%= call_hook(:view_projects_show_sidebar_top, :project => @project) %>
105
    <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
106
    <h3><%= l(:label_spent_time) %></h3>
107
    <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
108
    <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> |
109
    <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %></p>
110
    <% end %>
111
    <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
112
<% end %>
113

  
114
<% end %>
115

  
116
<% content_for :header_tags do %>
117
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
118
<% end %>
119

  
120
<% html_title(l(:label_overview)) -%>
vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.erb
1
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
2

  
3

  
4
<div id="authors" class="fields">
5
<!--  <h4><%= l("label_author_1") %></h4> -->
6

  
7
  <div id="<%= form_tag_id( f.object_name, :search_author ) %>" style=<%= "display:none;" unless params[:action] == "new" %> >
8
      <p>
9
        <%= f.text_field :search_name, :size => 25 %>
10
        <%= observe_field( form_tag_id(f.object_name, :search_name), :frequency => 0.5, :update => form_tag_id( f.object_name, :search_results), :url => { :controller => 'publications', :action => 'autocomplete_for_author', :object_name => form_object_id(f.object_name)  },  :with => 'q' ) %>
11
      </p>
12
      <%# link_to_function l(:label_author_is_me), "update_author_info(this," + User.current.get_author_info.to_json + ")", :id => "add_me_as_author" %>
13

  
14
      <p>   
15
      <%= f.select :search_results, options_for_select(@author_options), {}, {:size => 5, 
16
        :onChange => remote_function( :url => { :controller => :publications, :action => :get_user_info, :object_id => form_object_id(f.object_name) }, :with => "'value=' + 
17
        value" )} %>
18
	</p>  
19

  
20
      <p style="margin-bottom: -2.5em; padding-bottom; 0"><label><%= l(:identify_author_question) %></label></p>
21
      <p class="author_identify">
22
        <label class='inline'><%= radio_button_tag(:identify_author, "yes", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_yes ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_yes) %> </label><br />
23
       
24
        <label class='inline'><%= radio_button_tag(:identify_author, "correct", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_corrections ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_correct) %> </label><br />
25
        
26
        <label class='inline'><%= radio_button_tag(:identify_author, "no", true, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_no ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_no) %> </label><br />
27
      </p>
28
    </div>	
29
  
30
  <div class='author_edit' id="<%= form_tag_id( f.object_name, :edit_author_info ) %>">
31
    <p>
32
      <%= f.text_field :name_on_paper, {:class => ("readonly" unless params[:action] == "new") } %></p>
33
      <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_name_on_paper") %></p>
34
      <p><%= f.text_field :institution, {:class => ("readonly" unless params[:action] == "new") }  %></p>
35
      <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_institution") %></p>
36
      <p><%= f.text_field :email, {:class => ("readonly" unless params[:action] == "new") }  %></p>
37
      <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_email") %></p>
38
    </p>
39
  </div>
40
  
41

  
42
  <div class="box" id="<%= form_tag_id( f.object_name, :show_author_info ) %>" style="display: none">
43
	
44
  </div>
45

  
46
  <p>
47

  
48
  <%- if params[:action] == 'new' -%>
49
    <%= button_to_function l(:label_save_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %>
50
  <%- else -%>
51
    <%= button_to_function l(:label_edit_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %>
52
  <%- end -%>
53

  
54

  
55
  <%= link_to_remove_fields l("remove_author"), f %>
56
  </p>
57
</div>
58
<br/>
vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml
1
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
2

  
3

  
4
<div id="authors" class="fields">
5
<!--  <h4><%= l("label_author_1") %></h4> -->
6

  
7
  <div id="<%= form_tag_id( f.object_name, :search_author ) %>" style=<%= "display:none;" unless params[:action] == "new" %> >
8
      <p>
9
        <%= f.text_field :search_name, :size => 25 %>
10
        <%= observe_field( form_tag_id(f.object_name, :search_name), :frequency => 0.5, :update => form_tag_id( f.object_name, :search_results), :url => { :controller => 'publications', :action => 'autocomplete_for_author', :object_name => form_object_id(f.object_name)  },  :with => 'q' ) %>
11
      </p>
12
      <%# link_to_function l(:label_author_is_me), "update_author_info(this," + User.current.get_author_info.to_json + ")", :id => "add_me_as_author" %>
13

  
14
      <p>   
15
      <%= f.select :search_results, options_for_select(@author_options), {}, {:size => 5, 
16
        :onChange => remote_function( :url => { :controller => :publications, :action => :get_user_info, :object_id => form_object_id(f.object_name) }, :with => "'value=' + 
17
        value" )} %>
18
	</p>  
19

  
20
      <p style="margin-bottom: -2.5em; padding-bottom; 0"><label><%= l(:identify_author_question) %></label></p>
21
      <p class="author_identify">
22
        <label class='inline'><%= radio_button_tag(:identify_author, "yes", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_yes ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_yes) %> </label><br />
23
       
24
        <label class='inline'><%= radio_button_tag(:identify_author, "correct", false, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_corrections ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_correct) %> </label><br />
25
        
26
        <label class='inline'><%= radio_button_tag(:identify_author, "no", true, :name => form_tag_name(f.object_name,:identify_author ), :id => form_tag_id( f.object_name, :identify_author_no ), :onchange => "identify_author_status($(this).value, #{form_object_id(f.object_name) });") %> <%= l(:identify_author_no) %> </label><br />
27
      </p>
28
    </div>	
29
  
30
  <div class='author_edit' id="<%= form_tag_id( f.object_name, :edit_author_info ) %>">
31
    <p>
32
      <%= f.text_field :name_on_paper, {:class => ("readonly" unless params[:action] == "new") } %></p>
33
      <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_name_on_paper") %></p>
34
      <p><%= f.text_field :institution, {:class => ("readonly" unless params[:action] == "new") }  %></p>
35
      <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_institution") %></p>
36
      <p><%= f.text_field :email, {:class => ("readonly" unless params[:action] == "new") }  %></p>
37
      <p class='description' style=<%= "display:none;" unless params[:action] == "new" %>><%= h l("text_author_email") %></p>
38
    </p>
39
  </div>
40
  
41

  
42
  <div class="box" id="<%= form_tag_id( f.object_name, :show_author_info ) %>" style="display: none">
43
	
44
  </div>
45

  
46
  <p>
47

  
48
  <%- if params[:action] == 'new' -%>
49
    <%= button_to_function l(:label_save_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %>
50
  <%- else -%>
51
    <%= button_to_function l(:label_edit_author), {}, { :onclick => "toggle_save_author(#{form_object_id(f.object_name)}); return false;", :id => form_tag_id( f.object_name, :edit_save_button )} %>
52
  <%- end -%>
53

  
54

  
55
  <%= link_to_remove_fields l("remove_author"), f %>
56
  </p>
57
</div>
58
<br/>
vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_author.erb
1
<% if params[:q] && params[:q].length > 1 %>
2
	<%= choose_author_link @object_name, @results %>
3
<% end %>
4

  
vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_author.rhtml
1
<% if params[:q] && params[:q].length > 1 %>
2
	<%= choose_author_link @object_name, @results %>
3
<% end %>
4

  
vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_project.erb
1
<% if params[:q] && params[:q].length > 1 %>
2
	<%= projects_check_box_tags 'publication[project_ids][]', @projects %>
3
<% end %>
vendor/plugins/redmine_bibliography/app/views/publications/autocomplete_for_project.rhtml
1
<% if params[:q] && params[:q].length > 1 %>
2
	<%= projects_check_box_tags 'publication[project_ids][]', @projects %>
3
<% end %>
vendor/plugins/redmine_bibliography/app/views/settings/_bibliography.erb
1
<p><label>Menu caption</label>
2
<%= text_field_tag 'settings[menu]', @settings['menu'], :size => 30 %>
3
<br /><em>Clear this field if you don't want to add a tab to the project menu</em></p>
vendor/plugins/redmine_bibliography/app/views/settings/_bibliography.rhtml
1
<p><label>Menu caption</label>
2
<%= text_field_tag 'settings[menu]', @settings['menu'], :size => 30 %>
3
<br /><em>Clear this field if you don't want to add a tab to the project menu</em></p>
vendor/plugins/redmine_bibliography/app/views/users/show.erb
1
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
2

  
3
<div class="contextual">
4
<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
5
</div>
6

  
7
<h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2>
8

  
9
<div class="splitcontentleft">
10
<ul>
11
	<% unless @user.pref.hide_mail %>
12
		<li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
13
	<% end %>
14
	<% @user.visible_custom_field_values.each do |custom_value| %>
15
	<% if !custom_value.value.blank? %>
16
    <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
17
	<% end %>
18
	<% end %>
19
    <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
20
	<% unless @user.last_login_on.nil? %>
21
		<li><%=l(:field_last_login_on)%>: <%= format_date(@user.last_login_on) %></li>
22
	<% end %>
23
</ul>
24

  
25
<h3><%=l(:label_ssamr_description)%></h3>
26
<%= textilizable @description %>
27

  
28
<h3><%=l(:label_ssamr_institution)%></h3>
29
<p><%= h @institution_name %></p>
30

  
31

  
32
<% unless @memberships.empty? %>
33
<h3><%=l(:label_project_plural)%></h3>
34
<ul>
35
<% for membership in @memberships %>
36
	<li><%= link_to_project(membership.project) %>
37
    (<%=h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li>
38
<% end %>
39
</ul>
40
<% end %>
41
<%= call_hook :view_account_left_bottom, :user => @user %>
42
</div>
43

  
44
<div class="splitcontentright">
45

  
46
  <% if @user.author %>
47
  <div id="bibliography">
48
    <% @publications = Publication.all(:include => :authors, :conditions => "authors.id = #{@user.author.id}") %>
49

  
50
    <h3><%=l(:publications) %> <%= "(" + @publications.count.to_s + ")" %> </h3>
51

  
52
    <% @publications.each do |publication|%>    
53
      <dt>
54
        <span class="authors">
55
          <%= publication.authorships.map { |a| h a.name_on_paper }.join(', ') %><% if !publication.authorships.empty? %>.<% end %>
56
        </span>
57
        <span class="title"><%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication %></span>
58
        <% if publication.bibtex_entry.year.to_s != "" %>
59
          <span class="year">
60
            &nbsp;(<%= publication.bibtex_entry.year %>)
61
          </span>
62
        <% end %>
63
      </dt>
64
      <dd>
65
      </dd>
66
  	<% end %>
67
  </div>
68
  <% end %>
69

  
70

  
71
<% unless @events_by_day.empty? %>
72
<h3><%= link_to l(:label_activity), :controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %></h3>
73

  
74
<p>
75
<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>
76
</p>
77

  
78
<div id="activity">
79
<% @events_by_day.keys.sort.reverse.each do |day| %>
80
<h4><%= format_activity_day(day) %></h4>
81
<dl>
82
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
83
  <dt class="<%= e.event_type %>">
84
  <span class="time"><%= format_time(e.event_datetime, false) %></span>
85
  <%= content_tag('span', h(e.project), :class => 'project') %>
86
  <%= link_to format_activity_title(e.event_title), e.event_url %></dt>
87
  <dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd>
88
<% end -%>
89
</dl>
90
<% end -%>
91
</div>
92

  
93
<% other_formats_links do |f| %>
94
	<%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.rss_key} %>
95
<% end %>
96

  
97
<% content_for :header_tags do %>
98
		<%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :user_id => @user, :format => :atom, :key => User.current.rss_key) %>
99
<% end %>
100
<% end %>
101
<%= call_hook :view_account_right_bottom, :user => @user %>
102
</div>
103

  
104
<% html_title @user.name %>
vendor/plugins/redmine_bibliography/app/views/users/show.rhtml
1
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
2

  
3
<div class="contextual">
4
<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
5
</div>
6

  
7
<h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2>
8

  
9
<div class="splitcontentleft">
10
<ul>
11
	<% unless @user.pref.hide_mail %>
12
		<li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
13
	<% end %>
14
	<% @user.visible_custom_field_values.each do |custom_value| %>
15
	<% if !custom_value.value.blank? %>
16
    <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
17
	<% end %>
18
	<% end %>
19
    <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
20
	<% unless @user.last_login_on.nil? %>
21
		<li><%=l(:field_last_login_on)%>: <%= format_date(@user.last_login_on) %></li>
22
	<% end %>
23
</ul>
24

  
25
<h3><%=l(:label_ssamr_description)%></h3>
26
<%= textilizable @description %>
27

  
28
<h3><%=l(:label_ssamr_institution)%></h3>
29
<p><%= h @institution_name %></p>
30

  
31

  
32
<% unless @memberships.empty? %>
33
<h3><%=l(:label_project_plural)%></h3>
34
<ul>
35
<% for membership in @memberships %>
36
	<li><%= link_to_project(membership.project) %>
37
    (<%=h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li>
38
<% end %>
39
</ul>
40
<% end %>
41
<%= call_hook :view_account_left_bottom, :user => @user %>
42
</div>
43

  
44
<div class="splitcontentright">
45

  
46
  <% if @user.author %>
47
  <div id="bibliography">
48
    <% @publications = Publication.all(:include => :authors, :conditions => "authors.id = #{@user.author.id}") %>
49

  
50
    <h3><%=l(:publications) %> <%= "(" + @publications.count.to_s + ")" %> </h3>
51

  
52
    <% @publications.each do |publication|%>    
53
      <dt>
54
        <span class="authors">
55
          <%= publication.authorships.map { |a| h a.name_on_paper }.join(', ') %><% if !publication.authorships.empty? %>.<% end %>
56
        </span>
57
        <span class="title"><%= link_to publication.title, :controller => 'publications', :action => 'show', :id => publication %></span>
58
        <% if publication.bibtex_entry.year.to_s != "" %>
59
          <span class="year">
60
            &nbsp;(<%= publication.bibtex_entry.year %>)
61
          </span>
62
        <% end %>
63
      </dt>
64
      <dd>
65
      </dd>
66
  	<% end %>
67
  </div>
68
  <% end %>
69

  
70

  
71
<% unless @events_by_day.empty? %>
72
<h3><%= link_to l(:label_activity), :controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %></h3>
73

  
74
<p>
75
<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>
76
</p>
77

  
78
<div id="activity">
79
<% @events_by_day.keys.sort.reverse.each do |day| %>
80
<h4><%= format_activity_day(day) %></h4>
81
<dl>
82
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
83
  <dt class="<%= e.event_type %>">
84
  <span class="time"><%= format_time(e.event_datetime, false) %></span>
85
  <%= content_tag('span', h(e.project), :class => 'project') %>
86
  <%= link_to format_activity_title(e.event_title), e.event_url %></dt>
87
  <dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd>
88
<% end -%>
89
</dl>
90
<% end -%>
91
</div>
92

  
93
<% other_formats_links do |f| %>
94
	<%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.rss_key} %>
95
<% end %>
96

  
97
<% content_for :header_tags do %>
98
		<%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :user_id => @user, :format => :atom, :key => User.current.rss_key) %>
99
<% end %>
100
<% end %>
101
<%= call_hook :view_account_right_bottom, :user => @user %>
102
</div>
103

  
104
<% html_title @user.name %>

Also available in: Unified diff