diff --git a/src/root/machine.tt b/src/root/machine.tt new file mode 100644 index 00000000..4d0bcfcf --- /dev/null +++ b/src/root/machine.tt @@ -0,0 +1,77 @@ +[% WRAPPER layout.tt title=(create ? "New machine" : "Editing machine '$machine.hostname'") %] +[% PROCESS common.tt %] + +
+ +[% IF !create %] + + + + +[% END %] + +[% END %] diff --git a/src/root/machines.tt b/src/root/machines.tt new file mode 100644 index 00000000..3f4078ab --- /dev/null +++ b/src/root/machines.tt @@ -0,0 +1,50 @@ +[% WRAPPER layout.tt title="Machines" %] +[% PROCESS common.tt %] + +Enabled | +Machine | +Max concurrent | +Speedfactor | + [% FOREACH s IN systems %][% s.system %] | [% END %] +
---|---|---|---|---|
+ | [% INCLUDE maybeLink uri = c.uri_for(c.controller('Admin').action_for('machine_edit'), [m.hostname]) content = m.hostname %] | +[% m.maxconcurrent %] | +[% m.speedfactor %] | + [% FOREACH s IN systems %] ++ [% checked = false %] + [% FOREACH ms IN m.buildmachinesystemtypes %] + [% checked = ms.system == s.system %] + [% BREAK IF checked %] + [% END %] + + | + [% END %] +
+Resulting /etc/nix.machines [% IF nixMachinesWritable == 0 %](note: file is not writable!)[% END%]: +
+ ++[% nixMachines %] ++ +[% END %]