Reduce the width of the time entries table based on columns shown

This commit is contained in:
Paul van Tilburg 2015-06-20 18:53:35 +02:00
parent d852b84ec9
commit 01c8e205ae
1 changed files with 7 additions and 5 deletions

View File

@ -2248,7 +2248,7 @@ module StopTime::Views
end end
# Show registered time using the time_entries view as partial view. # Show registered time using the time_entries view as partial view.
div.row do div.row do
div.col_md_12 do div.col_md_10.col_xs_12 do
h2 "Registered time" h2 "Registered time"
_time_entries(@customer) _time_entries(@customer)
end end
@ -2338,10 +2338,12 @@ module StopTime::Views
end end
end end
# Show registered time (ab)using the time_entries view as partial view. # Show registered time (ab)using the time_entries view as partial view.
unless @method == "create" div.row do
h2 "Registered #{@task.billed? ? "billed" : "unbilled"} time" div.col_md_8.col_xs_12 do
_time_entries(@customer, @task) h2 "Registered #{@task.billed? ? "billed" : "unbilled"} time"
end _time_entries(@customer, @task)
end
end unless @method == "create"
end end
# The main overview of the existing invoices. # The main overview of the existing invoices.