Files
gitx/html/views/commit/index.html
T
André Berg 5598eef737 Add preference options for refreshing the view + controller automatically on windowDidBecomeMain.
Add preference for showing exact or relative dates. 
Make the showWhitespaceDifferences preference work.
Make the context slider in the diff views work. 

This is done with a minimal version of jQuery 1.3.2 being responsible for the animation and
a small cookie storing the last value between page refreshes so that it can be incremented by the HTML sliders
default value.
TODO: Maybe we can also make the default context value into a preference?
2010-03-24 09:14:52 +01:00

52 lines
2.2 KiB
HTML

<html>
<head>
<title>Diff for file</title>
<link rel="stylesheet" href="../../css/GitX.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="../../lib/GitX.js" type="text/javascript" charset="utf-8"></script>
<script src="../../lib/md5.js" type="text/javascript" charset="utf-8"></script>
<script src="../../lib/diffHighlighter.js" type="text/javascript" charset="utf-8"></script>
<script src="../../lib/keyboardNavigation.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="commit.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script type="text/javascript" src="../../lib/jquery-1.3.2.min.js"></script>
<script src="multipleSelection.js" type="text/javascript" charset="utf-8"></script>
<script src="commit.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
jQuery.noConflict();
jQuery(document).ready(function() {
var fadeInTime = 5;
var timeoutTime = 5;
setTimeout(function(){
jQuery('body').css("visibility", "visible").hide().fadeIn(fadeInTime);
}, timeoutTime);
document.getElementById("contextSize").value = getCookie("GitXContextLines");
jQuery('#contextSize').mouseup(function(){
setCookie("GitXContextLines", document.getElementById("contextSize").value, 10);
document.location.reload();
});
});
</script>
</head>
<body style="visibility: hidden;">
<h1 id='title'>
<input type="range" min="1" value="2" max="10" id="contextSize" onLoad="this.value = getCookie('GitXContextLines');">
<span id="contextTitle">Context:</span>
<span id="status">Nothing to commit</span>
</h1>
<div id="notification" style="display: none;">
<img src="../../images/spinner.gif" alt="Spinner" id="spinner"/>
<div id="notification_message"></div>
</div>
<!-- we use "state" for the current status (as opposed to something in the diff
and we use the notification for short notifications, which can occur together
with a diff display -->
<div id="state">
Nothing to commit (working directory clean)
</div>
<div id='diff'></div>
</body>