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