Skip to content

Commit 693b871

Browse files
committed
Set auth token in session, add GitHub nav
If we have set an auth token in the settings, need to set the session var Add the extra nav for GitHub
1 parent 4612e50 commit 693b871

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

index.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"top.ICEcoder.bugFileCheckTimer = ".$ICEcoder["bugFileCheckTimer"].";".
9898
"top.ICEcoder.bugFileMaxLines = ".$ICEcoder["bugFileMaxLines"].";";
9999
if($ICEcoder["githubAuthToken"] != "") {
100+
$_SESSION['githubAuthToken'] = $ICEcoder["githubAuthToken"];
100101
echo "top.ICEcoder.githubAuthTokenSet = true;";
101102
}
102103
echo "top.ICEcoder.csrf = '".$_SESSION["csrf"]."';";
@@ -174,6 +175,11 @@
174175
<li><a nohref onclick="top.ICEcoder.canShowFMNav=true;top.ICEcoder.showHideFileNav('show','optionsHelp')" onmouseover="if(top.ICEcoder.canShowFMNav) {top.ICEcoder.showHideFileNav('show','optionsHelp')}" id="optionsHelpNav"><?php echo $t['Help'];?></a></li>
175176
</ul>
176177
</div>
178+
<div id="githubNav" class="githubNav">
179+
<div class="commit" id="githubNavCommit" onclick="top.ICEcoder.gitHubAction('commit')">Commit</div>
180+
<div class="selected" id="githubNavSelectedCount">Selected: 0</div>
181+
<div class="pull" id="githubNavPull" onclick="top.ICEcoder.gitHubAction('pull')">Pull</div>
182+
</div>
177183
<div class="options" id="fileOptions">
178184
<div id="optionsFile" class="optionsList" onmouseover="top.ICEcoder.showHideFileNav('show',this.id)" onmouseout="top.ICEcoder.showHideFileNav('hide',this.id);top.ICEcoder.canShowFMNav=false">
179185
<ul>

0 commit comments

Comments
 (0)