-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
227 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
- icon_path = image_tag('icons/image.svg', :alt => 'Upload Picture Icon', :class => 'banner_icon') | ||
- if !user_signed_in? | ||
=link_to new_user_session_path, :class => "no_underline" do | ||
%div.sub_nav_item.add_picture_location_toggle | ||
=icon_path | ||
%span Upload a picture | ||
- else | ||
= banner('add_picture_location', 'Upload a picture', icon_path, location) | ||
%div[location, :add_picture]{:style => 'display:none;'} | ||
= render :partial => 'location_picture_xrefs/form', :locals => {:location => location} | ||
%div[location, :add_picture]{:style => 'display:none;'} | ||
|
||
:javascript | ||
$(function() { | ||
$('#add_picture_location_banner_#{location.id}').click(function () { | ||
$('#add_picture_location_#{location.id}').html(loadingHTML()); | ||
$('#add_picture_location_#{location.id}').load('/location_picture_xrefs/#{location.id}/form'); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
- icon_path = image_tag('icons/plus.svg', :alt => 'Add Machine Icon', :class => 'banner_icon') | ||
- if !user_signed_in? | ||
=link_to new_user_session_path, :class => "no_underline" do | ||
%div.sub_nav_item.add_machine_location_toggle | ||
=icon_path | ||
%span Add a machine | ||
- else | ||
= banner('add_machine_location', 'Add a machine', icon_path, location) | ||
%div[location, :add_machine]{:style => 'display:none'} | ||
%div[location, :add_machine]{:style => 'display:none'} | ||
|
||
:javascript | ||
$(function() { | ||
$('#add_machine_location_banner_#{location.id}').click(function () { | ||
$('#add_machine_location_#{location.id}').html(loadingHTML()); | ||
$('#add_machine_location_#{location.id}').load('/locations/#{location.id}/render_add_machine'); | ||
}); | ||
:javascript | ||
$(function() { | ||
$('#add_machine_location_banner_#{location.id}').click(function () { | ||
$('#add_machine_location_#{location.id}').html(loadingHTML()); | ||
$('#add_machine_location_#{location.id}').load('/locations/#{location.id}/render_add_machine'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
%div[location, :former_machines]{:style => 'display:none;'} | ||
|
||
:javascript | ||
$(function() { | ||
$('#former_machines_location_banner_#{location.id}').click(function () { | ||
$('#former_machines_location_#{location.id}').html(loadingHTML()); | ||
$('#former_machines_location_#{location.id}').load('/locations/#{location.id}/render_former_machines'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
%div[location, :recent_location_activity]{:style => 'display:none'} | ||
|
||
:javascript | ||
$(function() { | ||
$('#recent_location_activity_location_banner_#{location.id}').click(function () { | ||
$('#recent_location_activity_location_#{location.id}').html(loadingHTML()); | ||
$('#recent_location_activity_location_#{location.id}').load('/locations/#{location.id}/render_recent_activity'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
- icon_path = image_tag('machine-pink.png', :alt => 'Recent Activity Icon', :class => 'banner_icon former_machines') | ||
= banner('former_machines_location', 'Former machines', icon_path, location) | ||
%div[location, :former_machines]{:style => 'display:none;'} | ||
%span.font16.center.block.mb_20.mt_20 Machines that used to be here | ||
- location.former_machines.each do |former_machines| | ||
%div.recent_activity_container{:style => 'padding-left: 20px;'} | ||
%div.recent_activity_submission.font16.bold.brightpurple #{former_machines.machine_name} | ||
%div.former_machines_date.font14 | ||
Removed on | ||
%br/ | ||
#{former_machines.created_at.strftime("%b %d, %Y")} | ||
%div.quick_button_content_header Machines That Used to be Here | ||
- l.former_machines.each do |former_machines| | ||
%div.recent_activity_container{:style => 'padding-left: 20px;'} | ||
%div.recent_activity_submission.font16.bold.brightpurple #{former_machines.machine_name} | ||
%div.former_machines_date.font14 | ||
Removed on | ||
%br/ | ||
#{former_machines.created_at.strftime("%b %d, %Y")} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.