Add a Register time button to the time line

This button is most needed when viewing the interface on an extra small
screen, because in this case the register time first row will ben hidden.
This commit is contained in:
Paul van Tilburg 2015-06-20 18:32:45 +02:00
parent ee1f3a1f5e
commit 7139f00286
1 changed files with 4 additions and 0 deletions

View File

@ -1903,6 +1903,10 @@ module StopTime::Views
text! "Timeline"
small "#{@time_entries.count} time entries"
div.btn_group.navbar_right do
a.btn.btn_default.btn_sm :role => "button", :href=> R(TimelineNew) do
_icon("time")
span "Register time"
end
a.btn.btn_default.btn_sm.dropdown_toggle :role => "button",
:href => "#", "data-toggle" => "dropdown" do
_icon("filter")