Skip to content

Commit

Permalink
Add icon for archive and inactive telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
endenwer committed Mar 26, 2016
1 parent 47fe0b9 commit fc6c34e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/telegram_group_chats/_link_or_button.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<% if User.current.logged? and
(@project.everybody_can_create_telegram_group? or User.current.allowed_to?(:create_telegram_chat, @project)) %>
<%= link_to telegram_group_chats_path(issue_id: @issue.id), method: :post, remote: true do %>
<%= image_tag '/plugin_assets/redmine_chat_telegram/images/telegram-icon.png' %>
<%= image_tag '/plugin_assets/redmine_chat_telegram/images/telegram-inactive-icon.png' %>
Создать чат Telegram
<% end %>
<% end %>
Expand Down
10 changes: 6 additions & 4 deletions app/views/telegram_group_chats/_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
Войти в чат Telegram
<% end %>
<% if @issue.telegram_messages.present? %>
| <%= link_to 'Архив',
issue_telegram_messages_path(@issue.id),
| <%= link_to issue_telegram_messages_path(@issue.id),
target: "popup",
onclick: "window.open('#{ issue_telegram_messages_path(@issue.id) }','popup','width=600,height=400'); return false;"
%>
onclick: "window.open('#{ issue_telegram_messages_path(@issue.id) }','popup','width=600,height=400'); return false;" do %>

<%= image_tag '/plugin_assets/redmine_chat_telegram/images/archive-icon.png' %>
Архив
<% end %>
<% end %>
Binary file added assets/images/archive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/telegram-inactive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fc6c34e

Please sign in to comment.